diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-01 13:35:05 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-01 13:35:05 +0000 |
commit | 38d4980b3a834ef2eb7a3dac66cf9a57ca46b568 (patch) | |
tree | 410fb2fac50aa5e6e3672fac4af9ee07c57109e4 /mod/profile/actions/iconupload.php | |
parent | 9e047bce2e2f5523c164aa2e09a12dfb3a206091 (diff) | |
download | elgg-38d4980b3a834ef2eb7a3dac66cf9a57ca46b568.tar.gz elgg-38d4980b3a834ef2eb7a3dac66cf9a57ca46b568.tar.bz2 |
Added toolbar size for the icons
git-svn-id: https://code.elgg.org/elgg/trunk@1232 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/actions/iconupload.php')
-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 bb3b19528..a82327825 100644 --- a/mod/profile/actions/iconupload.php +++ b/mod/profile/actions/iconupload.php @@ -15,6 +15,7 @@ isloggedin()
) {
+ $toolbar = get_resized_image_from_uploaded_file('profileicon',16,16, true);
$tiny = get_resized_image_from_uploaded_file('profileicon',25,25, true);
$small = get_resized_image_from_uploaded_file('profileicon',40,40, true);
$medium = get_resized_image_from_uploaded_file('profileicon',100,100, true);
@@ -44,6 +45,10 @@ $filehandler->open("write");
$filehandler->write($tiny);
$filehandler->close();
+ $filehandler->setFilename("profile/" . $_SESSION['user']->username . "toolbar.jpg");
+ $filehandler->open("write");
+ $filehandler->write($toolbar);
+ $filehandler->close();
$filehandler->setFilename("profile/" . $_SESSION['user']->username . "master.jpg");
$filehandler->open("write");
$filehandler->write($master);
|