MDL-52840 assignsubmission_file: Change default setting file size
authorShamim Rezaie <rezaie@foodle.org>
Sun, 20 Nov 2016 17:38:05 +0000 (04:38 +1100)
committerShamim Rezaie <rezaie@foodle.org>
Sun, 20 Nov 2016 17:38:05 +0000 (04:38 +1100)
The default value of the assignsubmission_file/maxbytes setting is changed to $CFG->maxbytes.

mod/assign/submission/file/settings.php

index 4f38fee..4d7eb22 100644 (file)
@@ -41,7 +41,7 @@ if (isset($CFG->maxbytes)) {
     $element = new admin_setting_configselect('assignsubmission_file/maxbytes',
                                               $name,
                                               $description,
-                                              1048576,
+                                              $CFG->maxbytes,
                                               get_max_upload_sizes($CFG->maxbytes, 0, 0, $maxbytes));
     $settings->add($element);
 }