diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-30 10:16:03 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-30 10:16:03 +0000 |
commit | d53a7b7a2d48a4a47bcec28779a4a7276c954a1b (patch) | |
tree | 70e38d8b2f07c12b5b8397adcd4218b1fb13f8a4 | |
parent | 86d44569c7904ee6c466a935493a88e06c970ba7 (diff) | |
download | elgg-d53a7b7a2d48a4a47bcec28779a4a7276c954a1b.tar.gz elgg-d53a7b7a2d48a4a47bcec28779a4a7276c954a1b.tar.bz2 |
Fixed profile resizing issue
git-svn-id: https://code.elgg.org/elgg/trunk@569 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/profile/actions/iconupload.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php index bdb925838..10a55be1c 100644 --- a/mod/profile/actions/iconupload.php +++ b/mod/profile/actions/iconupload.php @@ -13,11 +13,12 @@ // If we were given a correct icon
if (
isloggedin()
- && $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',200,200)
) {
+ $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);
+
$filehandler = new ElggFile();
$filehandler->setFilename($_SESSION['user']->username . "large.jpg");
$filehandler->open("write");
|