From d53a7b7a2d48a4a47bcec28779a4a7276c954a1b Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 30 Apr 2008 10:16:03 +0000 Subject: Fixed profile resizing issue git-svn-id: https://code.elgg.org/elgg/trunk@569 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/actions/iconupload.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mod/profile/actions/iconupload.php') 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"); -- cgit v1.2.3