aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/actions
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/actions')
-rw-r--r--mod/profile/actions/iconupload.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php
index c30ee084d..a1e29b255 100644
--- a/mod/profile/actions/iconupload.php
+++ b/mod/profile/actions/iconupload.php
@@ -15,6 +15,7 @@
isloggedin()
) {
+ $tiny = get_resized_image_from_uploaded_file('profileicon',25,25);
$small = get_resized_image_from_uploaded_file('profileicon',50,50);
$medium = get_resized_image_from_uploaded_file('profileicon',100,100);
$large = get_resized_image_from_uploaded_file('profileicon',300,300);
@@ -37,6 +38,10 @@
$filehandler->open("write");
$filehandler->write($small);
$filehandler->close();
+ $filehandler->setFilename("profile/" . $_SESSION['user']->username . "tiny.jpg");
+ $filehandler->open("write");
+ $filehandler->write($small);
+ $filehandler->close();
system_message(elgg_echo("profile:icon:uploaded"));