aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/actions/iconupload.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/actions/iconupload.php')
-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 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();