aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 14:25:38 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 14:25:38 +0000
commitc8cdcd7ca3d491759b8f7d233552ef211c4530ae (patch)
treef87572c7ff5626f44f0469130e0f29df6ddc8cad /mod/profile
parent55ff0b2a6a1f62818d33cd409cb3d148b1ccf824 (diff)
downloadelgg-c8cdcd7ca3d491759b8f7d233552ef211c4530ae.tar.gz
elgg-c8cdcd7ca3d491759b8f7d233552ef211c4530ae.tar.bz2
Fix to icon upload
git-svn-id: https://code.elgg.org/elgg/trunk@1061 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/actions/iconupload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php
index a4738a070..00e766c1c 100644
--- a/mod/profile/actions/iconupload.php
+++ b/mod/profile/actions/iconupload.php
@@ -44,8 +44,8 @@
$filehandler->write($tiny);
$filehandler->close();
$filehandler->setFilename("profile/" . $_SESSION['user']->username . "master.jpg");
- $filehandler->open("master");
- $filehandler->write($tiny);
+ $filehandler->open("write");
+ $filehandler->write($master);
$filehandler->close();
$_SESSION['user']->icontime = time();