diff options
Diffstat (limited to 'views/default/js/photos/upload.php')
-rw-r--r-- | views/default/js/photos/upload.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/views/default/js/photos/upload.php b/views/default/js/photos/upload.php index 82e2696bd..e3922c8c8 100644 --- a/views/default/js/photos/upload.php +++ b/views/default/js/photos/upload.php @@ -3,9 +3,11 @@ * */ -$maxfilesize = (int) elgg_get_plugin_setting('maxfilesize', 'tidypics'); -$maxfilesize *= 1024; - +if ($maxfilesize = (int) elgg_get_plugin_setting('maxfilesize', 'lightpics')) { + $maxfilesize *= 1024 * 1024; +} else { + $maxfilesize = 5 * 1024 * 1024; +} ?> elgg.provide('elgg.tidypics.upload'); |