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 310d34b3d..21280463e 100644
--- a/mod/profile/actions/cropicon.php
+++ b/mod/profile/actions/cropicon.php
@@ -63,7 +63,7 @@ if ($small !== FALSE && $medium !== FALSE && $tiny !== FALSE) {
}
//forward the user back to the upload page to crop
-$url = "{$vars['url']}pg/profile/{$profile_owner->username}/edit/icon";
+$url = elgg_get_site_url()."pg/profile/{$profile_owner->username}/edit/icon";
if (isloggedin()) {
forward($url);