aboutsummaryrefslogtreecommitdiff
path: root/views/default/settings/tidypics/edit.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-05-12 01:48:53 +0000
committerCash Costello <cash.costello@gmail.com>2009-05-12 01:48:53 +0000
commit3eb517748157da5d94efc1e6a58e42a55c7e1d0c (patch)
treee6dd180901cdf1afdeb903cfb1afad2d7b72cf2c /views/default/settings/tidypics/edit.php
parent501af5b28c7fb2ec36658df16849572c14d050a4 (diff)
downloadelgg-3eb517748157da5d94efc1e6a58e42a55c7e1d0c.tar.gz
elgg-3eb517748157da5d94efc1e6a58e42a55c7e1d0c.tar.bz2
Add setting to select between GD and ImageMagick - not using setting yet
Diffstat (limited to 'views/default/settings/tidypics/edit.php')
-rw-r--r--views/default/settings/tidypics/edit.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/views/default/settings/tidypics/edit.php b/views/default/settings/tidypics/edit.php
index 2c63edff8..455be9bd3 100644
--- a/views/default/settings/tidypics/edit.php
+++ b/views/default/settings/tidypics/edit.php
@@ -1,4 +1,23 @@
<?php
+ $image_lib = $vars['entity']->image_lib;
+ if (!$image_lib) $image_lib = 'GD';
+?>
+<p>
+ <?php echo elgg_echo('tidypics:image_lib'); ?>
+
+ <?php
+ echo elgg_view('input/pulldown', array(
+ 'internalname' => 'params[image_lib]',
+ 'options_values' => array(
+ 'weekly' => 'GD',
+ 'monthly' => 'ImageMagick',
+ ),
+ 'value' => $image_lib
+ ));
+ ?>
+</p>
+
+<?php
$maxfilesize = $vars['entity']->maxfilesize;
if (!$maxfilesize) $maxfilesize = (int) 10240; //set the default maximum file size to 10MB (1024KB * 10 = 10240KB = 10MB)