]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4011 forgot upload action
authorCash Costello <cash.costello@gmail.com>
Sat, 5 Nov 2011 11:56:12 +0000 (07:56 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 5 Nov 2011 11:56:12 +0000 (07:56 -0400)
actions/avatar/upload.php

index 885a165578c2c670aa74d2e959064ce311cb54ce..2e8ff98b3cedcde4c31bf152554609938e7caf92 100644 (file)
@@ -16,15 +16,7 @@ if ($_FILES['avatar']['error'] != 0) {
        forward(REFERER);
 }
 
-//@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'=>TRUE),
-       'master' => array('w'=>550, 'h'=>550, '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.