From 38d4980b3a834ef2eb7a3dac66cf9a57ca46b568 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 1 Jul 2008 13:35:05 +0000 Subject: Added toolbar size for the icons git-svn-id: https://code.elgg.org/elgg/trunk@1232 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/actions/cropicon.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/profile/actions/cropicon.php') diff --git a/mod/profile/actions/cropicon.php b/mod/profile/actions/cropicon.php index bcd8ea756..d52c6b02c 100644 --- a/mod/profile/actions/cropicon.php +++ b/mod/profile/actions/cropicon.php @@ -22,6 +22,7 @@ $filehandler->setFilename("profile/" . $user->username . "master" . ".jpg"); $filename = $filehandler->getFilenameOnFilestore(); + $toolbar = get_resized_image_from_existing_file($filename,16,16, true, $x1, $y1, $x2, $y2); $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); @@ -44,6 +45,10 @@ $filehandler->open("write"); $filehandler->write($tiny); $filehandler->close(); + $filehandler->setFilename("profile/" . $_SESSION['user']->username . "toolbar.jpg"); + $filehandler->open("write"); + $filehandler->write($toolbar); + $filehandler->close(); $user->x1 = $x1; $user->x2 = $x2; -- cgit v1.2.3