aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-08-22 16:01:24 +0000
committerCash Costello <cash.costello@gmail.com>2009-08-22 16:01:24 +0000
commit478af07f910adae242f6ecbba094420627b1e4a0 (patch)
tree9c75a49d19008e96f50e09fcf510f689b29e8ff0 /views/default/tidypics
parentf464b98a26cac9d2ec27b1f6ad249dc1074ff4fb (diff)
downloadelgg-478af07f910adae242f6ecbba094420627b1e4a0.tar.gz
elgg-478af07f910adae242f6ecbba094420627b1e4a0.tar.bz2
now handling max file size of less than 1 MB
Diffstat (limited to 'views/default/tidypics')
-rw-r--r--views/default/tidypics/forms/admin.php2
-rw-r--r--views/default/tidypics/forms/upload.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/views/default/tidypics/forms/admin.php b/views/default/tidypics/forms/admin.php
index 1685f7791..c52348ecc 100644
--- a/views/default/tidypics/forms/admin.php
+++ b/views/default/tidypics/forms/admin.php
@@ -70,8 +70,10 @@
$form_body .= '<p class="admin_debug">' . elgg_view("input/checkboxes", array('options' => array(elgg_echo('tidypics:settings:view_count') => 'enabled'), 'internalname' => 'view_count', 'value' => $view_count )) . "</p>";
// Watermark Text
+/*
$form_body .= "<p>" . elgg_echo('tidypics:settings:watermark') . "<br />";
$form_body .= elgg_view("input/text",array('internalname' => 'params[watermark_text]', 'value' => $plugin->watermark_text)) . "</p>";
+*/
// Max Image Size
$maxfilesize = $plugin->maxfilesize;
diff --git a/views/default/tidypics/forms/upload.php b/views/default/tidypics/forms/upload.php
index d3fc7828d..522a51c4b 100644
--- a/views/default/tidypics/forms/upload.php
+++ b/views/default/tidypics/forms/upload.php
@@ -7,7 +7,7 @@
$album = get_entity($vars['album']);
$access_id = $album->access_id;
- $maxfilesize = (int) get_plugin_setting('maxfilesize','tidypics');
+ $maxfilesize = (float) get_plugin_setting('maxfilesize','tidypics');
if (!$maxfilesize)
$maxfilesize = 5;