plugins/SpecialUpdownload.php
changeset 832 7152ca0a0ce9
parent 801 eb8b23f11744
child 898 c75754f5b1da
--- a/plugins/SpecialUpdownload.php	Mon Feb 16 16:04:54 2009 -0500
+++ b/plugins/SpecialUpdownload.php	Mon Feb 16 16:17:25 2009 -0500
@@ -70,7 +70,7 @@
     {
       die_friendly($lang->get('upload_err_title'), '<p>' . $lang->get('upload_err_cant_get_file_meta') . '</p>');
     }
-    if ( $file['size'] == 0 || $file['size'] > (int)getConfig('max_file_size') )
+    if ( $file['size'] == 0 || $file['size'] > (int)getConfig('max_file_size', '256000') )
     {
       die_friendly($lang->get('upload_err_title'), '<p>' . $lang->get('upload_err_too_big_or_small') . '</p>');
     }
@@ -165,7 +165,7 @@
     <p><?php 
       // Get the max file size, and format it in a way that is user-friendly
       
-      $fs = getConfig('max_file_size');
+      $fs = getConfig('max_file_size', '256000');
       $fs = (int)$fs;
       if($fs >= 1048576)
       {