aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/photos/upload.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-04 00:02:41 +0200
committerSem <sembrestels@riseup.net>2012-08-04 00:02:41 +0200
commit946c594323450632099107cb8d5456130ae73322 (patch)
treee346faa0392056e3e03bdac59c5dc6b5a9d29721 /views/default/js/photos/upload.php
parent148b27d5d409a5f08e9e7f7e4a1b5adc8b3b2631 (diff)
downloadelgg-946c594323450632099107cb8d5456130ae73322.tar.gz
elgg-946c594323450632099107cb8d5456130ae73322.tar.bz2
Changed tidypics by lightpics settings.
Diffstat (limited to 'views/default/js/photos/upload.php')
-rw-r--r--views/default/js/photos/upload.php8
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');