aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/actions/iconupload.php
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 14:44:48 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 14:44:48 +0000
commit3c840aee3ec9b4f94a5610678ab1550a51b431fe (patch)
tree2c5e14cac70b41e51a749226bdca99e46e64f086 /mod/profile/actions/iconupload.php
parentbdcb2c682bbfcc3189ebb5acbfb8e39e3b8c52a3 (diff)
downloadelgg-3c840aee3ec9b4f94a5610678ab1550a51b431fe.tar.gz
elgg-3c840aee3ec9b4f94a5610678ab1550a51b431fe.tar.bz2
beginnings of the icon cropper tool
git-svn-id: https://code.elgg.org/elgg/trunk@1064 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/actions/iconupload.php')
-rw-r--r--mod/profile/actions/iconupload.php8
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