diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-09 11:23:22 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-09 11:23:22 +0000 |
commit | 15d9fc69cf77f3bd967ce444413b3b8422576e9a (patch) | |
tree | dd2d7eae29741f89e602636967ca24de209664a9 /engine | |
parent | b32b99e3f464d23de30e5c199ae33ba1819b6fbd (diff) | |
download | elgg-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
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/filestore.php | 6 |
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);
//}
|