aboutsummaryrefslogtreecommitdiff
path: root/mod/sitepages/actions/edit_settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/sitepages/actions/edit_settings.php')
-rw-r--r--mod/sitepages/actions/edit_settings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/sitepages/actions/edit_settings.php b/mod/sitepages/actions/edit_settings.php
index d79c38240..8f328eb76 100644
--- a/mod/sitepages/actions/edit_settings.php
+++ b/mod/sitepages/actions/edit_settings.php
@@ -15,7 +15,7 @@ switch ($page_type) {
$content = get_input('sitepages_content', '', FALSE);
if (empty($content)) {
register_error(elgg_echo('sitepages:blank'));
- forward($_SERVER['HTTP_REFERER']);
+ forward(REFERER);
}
//$sitepage->title = $page_type;
@@ -47,4 +47,4 @@ if ($sitepage->save()) {
register_error(elgg_echo('sitepages:error'));
}
-forward($_SERVER['HTTP_REFERER']);
+forward(REFERER);