diff options
Diffstat (limited to 'mod/groups/actions/edit.php')
-rw-r--r-- | mod/groups/actions/edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/groups/actions/edit.php b/mod/groups/actions/edit.php index 6e738e205..4ae98815c 100644 --- a/mod/groups/actions/edit.php +++ b/mod/groups/actions/edit.php @@ -31,7 +31,7 @@ $group = new ElggGroup($group_guid); // load if present, if not create a new gro if (($group_guid) && (!$group->canEdit())) { register_error(elgg_echo("groups:cantedit")); - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); exit; } @@ -46,7 +46,7 @@ if (sizeof($input) > 0) { if (!$group->name) { register_error(elgg_echo("groups:notitle")); - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); exit; } |