diff options
Diffstat (limited to 'mod/groups/actions')
-rw-r--r-- | mod/groups/actions/addtogroup.php | 2 | ||||
-rw-r--r-- | mod/groups/actions/edit.php | 4 | ||||
-rw-r--r-- | mod/groups/actions/featured.php | 2 | ||||
-rw-r--r-- | mod/groups/actions/groupskillinvitation.php | 2 | ||||
-rw-r--r-- | mod/groups/actions/groupskillrequest.php | 2 | ||||
-rw-r--r-- | mod/groups/actions/invite.php | 2 | ||||
-rw-r--r-- | mod/groups/actions/join.php | 2 | ||||
-rw-r--r-- | mod/groups/actions/joinrequest.php | 2 | ||||
-rw-r--r-- | mod/groups/actions/leave.php | 2 |
9 files changed, 10 insertions, 10 deletions
diff --git a/mod/groups/actions/addtogroup.php b/mod/groups/actions/addtogroup.php index ff2ab6944..6f63ff446 100644 --- a/mod/groups/actions/addtogroup.php +++ b/mod/groups/actions/addtogroup.php @@ -89,6 +89,6 @@ } } - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); ?> 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; } diff --git a/mod/groups/actions/featured.php b/mod/groups/actions/featured.php index 8dc9dcc65..b49a76471 100644 --- a/mod/groups/actions/featured.php +++ b/mod/groups/actions/featured.php @@ -35,4 +35,4 @@ } - forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file + forward(REFERER);
\ No newline at end of file diff --git a/mod/groups/actions/groupskillinvitation.php b/mod/groups/actions/groupskillinvitation.php index ea74024fc..46d71bede 100644 --- a/mod/groups/actions/groupskillinvitation.php +++ b/mod/groups/actions/groupskillinvitation.php @@ -23,6 +23,6 @@ system_message(elgg_echo("groups:invitekilled")); } - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); ?>
\ No newline at end of file diff --git a/mod/groups/actions/groupskillrequest.php b/mod/groups/actions/groupskillrequest.php index 153dc0179..c0511cc0e 100644 --- a/mod/groups/actions/groupskillrequest.php +++ b/mod/groups/actions/groupskillrequest.php @@ -23,6 +23,6 @@ system_message(elgg_echo("groups:joinrequestkilled")); } - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); ?>
\ No newline at end of file diff --git a/mod/groups/actions/invite.php b/mod/groups/actions/invite.php index fa56b9015..9ab4f2440 100644 --- a/mod/groups/actions/invite.php +++ b/mod/groups/actions/invite.php @@ -60,6 +60,6 @@ if (sizeof($user_guid)) } } -forward($_SERVER['HTTP_REFERER']); +forward(REFERER); ?> diff --git a/mod/groups/actions/join.php b/mod/groups/actions/join.php index 6fd94d34a..158da372c 100644 --- a/mod/groups/actions/join.php +++ b/mod/groups/actions/join.php @@ -58,6 +58,6 @@ else register_error(elgg_echo("groups:cantjoin")); - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); exit; ?> diff --git a/mod/groups/actions/joinrequest.php b/mod/groups/actions/joinrequest.php index fae8fc0de..a3b372e65 100644 --- a/mod/groups/actions/joinrequest.php +++ b/mod/groups/actions/joinrequest.php @@ -79,4 +79,4 @@ if (($group) && ($user) && (!$group->isMember($user))) } } -forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file +forward(REFERER);
\ No newline at end of file diff --git a/mod/groups/actions/leave.php b/mod/groups/actions/leave.php index 220a106cf..5ed2bf648 100644 --- a/mod/groups/actions/leave.php +++ b/mod/groups/actions/leave.php @@ -36,6 +36,6 @@ else register_error(elgg_echo("groups:cantleave")); - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); exit; ?>
\ No newline at end of file |