aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/actions/iconupload.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-21 14:55:17 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-21 14:55:17 +0000
commit11c1b520e80ced1a7f226da0bd5faaaffb11becf (patch)
treefb127b913ee7f038bb90062966bde08f664c5cae /mod/profile/actions/iconupload.php
parent48274a3bb170696c1514db0a3e0fc9484c2d495a (diff)
downloadelgg-11c1b520e80ced1a7f226da0bd5faaaffb11becf.tar.gz
elgg-11c1b520e80ced1a7f226da0bd5faaaffb11becf.tar.bz2
Assorted profile icon fixes
git-svn-id: https://code.elgg.org/elgg/trunk@668 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/actions/iconupload.php')
-rw-r--r--mod/profile/actions/iconupload.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php
index 3c41f48a4..c30ee084d 100644
--- a/mod/profile/actions/iconupload.php
+++ b/mod/profile/actions/iconupload.php
@@ -24,15 +24,16 @@
&& $large !== false) {
$filehandler = new ElggFile();
- $filehandler->setFilename($_SESSION['user']->username . "large.jpg");
+ $filehandler->owner_guid = $_SESSION['user']->getGUID();
+ $filehandler->setFilename("profile/" . $_SESSION['user']->username . "large.jpg");
$filehandler->open("write");
$filehandler->write($large);
$filehandler->close();
- $filehandler->setFilename($_SESSION['user']->username . "medium.jpg");
+ $filehandler->setFilename("profile/" . $_SESSION['user']->username . "medium.jpg");
$filehandler->open("write");
$filehandler->write($medium);
$filehandler->close();
- $filehandler->setFilename($_SESSION['user']->username . "small.jpg");
+ $filehandler->setFilename("profile/" . $_SESSION['user']->username . "small.jpg");
$filehandler->open("write");
$filehandler->write($small);
$filehandler->close();