diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profile/actions/iconupload.php | 10 | ||||
-rw-r--r-- | mod/profile/languages/en.php | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php index 7c7e95f37..a6e35e4f8 100644 --- a/mod/profile/actions/iconupload.php +++ b/mod/profile/actions/iconupload.php @@ -15,10 +15,10 @@ 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);
+ $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);
+ $large = get_resized_image_from_uploaded_file('profileicon',200,200);
if ($small !== false
&& $medium !== false
@@ -40,7 +40,7 @@ $filehandler->close();
$filehandler->setFilename("profile/" . $_SESSION['user']->username . "tiny.jpg");
$filehandler->open("write");
- $filehandler->write($small);
+ $filehandler->write($tiny);
$filehandler->close();
$_SESSION['user']->icontime = time();
diff --git a/mod/profile/languages/en.php b/mod/profile/languages/en.php index 85fa7c809..ffe609eec 100644 --- a/mod/profile/languages/en.php +++ b/mod/profile/languages/en.php @@ -38,6 +38,7 @@ */
'profile:saved' => "Your profile was successfully saved.",
+ 'profile:icon:uploaded' => "Your profile icon was successfully uploaded.",
/**
* Error messages
|