From 50318370acf9ee42604f1debabdfa8b7f2f970ae Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 24 Jun 2008 09:10:54 +0000 Subject: Widget fixes git-svn-id: https://code.elgg.org/elgg/trunk@1086 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/actions/cropicon.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'mod/profile') diff --git a/mod/profile/actions/cropicon.php b/mod/profile/actions/cropicon.php index 137bd50ba..bcd8ea756 100644 --- a/mod/profile/actions/cropicon.php +++ b/mod/profile/actions/cropicon.php @@ -25,19 +25,13 @@ $tiny = get_resized_image_from_existing_file($filename,25,25, true, $x1, $y1, $x2, $y2); $small = get_resized_image_from_existing_file($filename,40,40, true, $x1, $y1, $x2, $y2); $medium = get_resized_image_from_existing_file($filename,100,100, true, $x1, $y1, $x2, $y2); - $large = get_resized_image_from_existing_file($filename,200,200, true, $x1, $y1, $x2, $y2); if ($small !== false && $medium !== false - && $large !== false && $tiny !== false) { $filehandler = new ElggFile(); $filehandler->owner_guid = $_SESSION['user']->getGUID(); - $filehandler->setFilename("profile/" . $_SESSION['user']->username . "large.jpg"); - $filehandler->open("write"); - $filehandler->write($large); - $filehandler->close(); $filehandler->setFilename("profile/" . $_SESSION['user']->username . "medium.jpg"); $filehandler->open("write"); $filehandler->write($medium); -- cgit v1.2.3