diff options
Diffstat (limited to 'mod/profile/actions/iconupload.php')
-rw-r--r-- | mod/profile/actions/iconupload.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php index 00e766c1c..8dcfeea36 100644 --- a/mod/profile/actions/iconupload.php +++ b/mod/profile/actions/iconupload.php @@ -45,7 +45,7 @@ $filehandler->close();
$filehandler->setFilename("profile/" . $_SESSION['user']->username . "master.jpg");
$filehandler->open("write");
- $filehandler->write($master);
+ $filehandler->write($master);
$filehandler->close();
$_SESSION['user']->icontime = time();
@@ -62,6 +62,10 @@ }
- if (isloggedin()) forward($_SESSION['user']->getURL());
+ //forward the user back to the upload page to crop
+
+ $url = $vars['url'] . "mod/profile/editicon.php";
+
+ if (isloggedin()) forward($url);
?>
\ No newline at end of file |