aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-16 10:53:40 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-16 10:53:40 +0000
commite1b554d703d6a41006009392afcfe66f64f9b769 (patch)
tree55a884fcaa7d25132f45eb77c78a49789b537501 /views/default/tidypics
parentb4b85ecc55a6787726627150a2ee93fd960ff2c6 (diff)
downloadelgg-e1b554d703d6a41006009392afcfe66f64f9b769.tar.gz
elgg-e1b554d703d6a41006009392afcfe66f64f9b769.tar.bz2
changed max file size parsing code in upload form
Diffstat (limited to 'views/default/tidypics')
-rw-r--r--views/default/tidypics/forms/upload.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/views/default/tidypics/forms/upload.php b/views/default/tidypics/forms/upload.php
index db162e4e9..ec33ca933 100644
--- a/views/default/tidypics/forms/upload.php
+++ b/views/default/tidypics/forms/upload.php
@@ -6,15 +6,9 @@
$container_guid = get_input('container_guid');
$access_id = get_entity($vars['album'])->access_id;
- if (get_plugin_setting('maxfilesize','tidypics')) {
- if (((int) get_plugin_setting('maxfilesize','tidypics')) < 1 || ((int) get_plugin_setting('maxfilesize','tidypics')) > 1048576) {
- $maxfilesize = 10240; //if file size is less than 1KB or greater than 1GB, default to 10MB
- } else {
- $maxfilesize = (int) get_plugin_setting('maxfilesize','tidypics');
- }
- } else {
- $maxfilesize = 10240; //if the file size limit is not set, default to 10MB
- }
+ $maxfilesize = (int) get_plugin_setting('maxfilesize','tidypics');
+ if (!$maxfilesize)
+ $maxfilesize = 5;
?>
<script language="javascript">