aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-27 21:47:12 -0400
committercash <cash.costello@gmail.com>2011-10-27 21:47:12 -0400
commit5c0b61d35597677ddce30c99eccd765b8b9e1da1 (patch)
treedf275d04be46b88e7c6aa40b54d38c21f2b09035 /actions
parentf126deebed40cf175a5b0ef2744737189429a5ca (diff)
downloadelgg-5c0b61d35597677ddce30c99eccd765b8b9e1da1.tar.gz
elgg-5c0b61d35597677ddce30c99eccd765b8b9e1da1.tar.bz2
Fixes #4011 icon sizes are configurable now
Diffstat (limited to 'actions')
-rw-r--r--actions/avatar/crop.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/actions/avatar/crop.php b/actions/avatar/crop.php
index 9c57530ae..39061fa2c 100644
--- a/actions/avatar/crop.php
+++ b/actions/avatar/crop.php
@@ -22,14 +22,7 @@ $filehandler->owner_guid = $owner->getGUID();
$filehandler->setFilename("profile/" . $owner->guid . "master" . ".jpg");
$filename = $filehandler->getFilenameOnFilestore();
-//@todo make this configurable?
-$icon_sizes = array(
- 'topbar' => array('w'=>16, 'h'=>16, 'square'=>TRUE, 'upscale'=>TRUE),
- 'tiny' => array('w'=>25, 'h'=>25, 'square'=>TRUE, 'upscale'=>TRUE),
- 'small' => array('w'=>40, 'h'=>40, 'square'=>TRUE, 'upscale'=>TRUE),
- 'medium' => array('w'=>100, 'h'=>100, 'square'=>TRUE, 'upscale'=>TRUE),
- 'large' => array('w'=>200, 'h'=>200, 'square'=>FALSE, 'upscale'=>FALSE)
-);
+$icon_sizes = elgg_get_config('icon_sizes');
// get the images and save their file handlers into an array
// so we can do clean up if one fails.