diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 13:41:24 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 13:41:24 +0000 |
commit | 99494b7a7426ad90ed6ce3b57a8a1b02ccdea631 (patch) | |
tree | a19c7927b26e52ea22a1abcb53b2f51b47f9d373 | |
parent | 413a573d493ebdd27d86f5947fba621198c0747b (diff) | |
download | elgg-99494b7a7426ad90ed6ce3b57a8a1b02ccdea631.tar.gz elgg-99494b7a7426ad90ed6ce3b57a8a1b02ccdea631.tar.bz2 |
Added master icon size
git-svn-id: https://code.elgg.org/elgg/trunk@1056 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/profile/actions/iconupload.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php index a6e35e4f8..a4738a070 100644 --- a/mod/profile/actions/iconupload.php +++ b/mod/profile/actions/iconupload.php @@ -19,6 +19,7 @@ $small = get_resized_image_from_uploaded_file('profileicon',40,40, true);
$medium = get_resized_image_from_uploaded_file('profileicon',100,100, true);
$large = get_resized_image_from_uploaded_file('profileicon',200,200);
+ $master = get_resized_image_from_uploaded_file('profileicon',600,600);
if ($small !== false
&& $medium !== false
@@ -42,6 +43,10 @@ $filehandler->open("write");
$filehandler->write($tiny);
$filehandler->close();
+ $filehandler->setFilename("profile/" . $_SESSION['user']->username . "master.jpg");
+ $filehandler->open("master");
+ $filehandler->write($tiny);
+ $filehandler->close();
$_SESSION['user']->icontime = time();
|