aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/actions/cropicon.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/actions/cropicon.php')
-rw-r--r--mod/profile/actions/cropicon.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/profile/actions/cropicon.php b/mod/profile/actions/cropicon.php
index 21280463e..1212e8bab 100644
--- a/mod/profile/actions/cropicon.php
+++ b/mod/profile/actions/cropicon.php
@@ -12,7 +12,7 @@ $profile_owner = get_user_by_username($profile_username);
if (!$profile_owner || !($profile_owner instanceof ElggUser) || !$profile_owner->canEdit()) {
register_error(elgg_echo('profile:icon:fail'));
- forward($_SERVER['HTTP_REFERER']);
+ forward(REFERER);
}
$x1 = (int) get_input('x_1',0);