aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:23:22 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:23:22 +0000
commit15d9fc69cf77f3bd967ce444413b3b8422576e9a (patch)
treedd2d7eae29741f89e602636967ca24de209664a9
parentb32b99e3f464d23de30e5c199ae33ba1819b6fbd (diff)
downloadelgg-15d9fc69cf77f3bd967ce444413b3b8422576e9a.tar.gz
elgg-15d9fc69cf77f3bd967ce444413b3b8422576e9a.tar.bz2
Icons are now correctly resized
git-svn-id: https://code.elgg.org/elgg/trunk@3132 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/filestore.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php
index ee90e4b86..3832a0fec 100644
--- a/engine/lib/filestore.php
+++ b/engine/lib/filestore.php
@@ -769,7 +769,11 @@
$height = ($y2 - $y1);
}
}//else {
- // Resize and return the image contents!
+ // Resize and return the image contents!
+ if ($square) {
+ $newheight = $maxheight;
+ $newwidth = $maxwidth;
+ }
imagecopyresampled($newimage, $oldimage, 0,0,$widthoffset,$heightoffset,$newwidth,$newheight,$width,$height);
//}