From 946c594323450632099107cb8d5456130ae73322 Mon Sep 17 00:00:00 2001 From: Sem Date: Sat, 4 Aug 2012 00:02:41 +0200 Subject: Changed tidypics by lightpics settings. --- views/default/js/photos/upload.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'views/default/js/photos') 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'); -- cgit v1.2.3