MDL-39077 max_files does not include current option when it is non-standard

Non-standard means php.ini was set to something not in the default list (like 7MB),
then the config was saved to that specific value, and now the value in php.ini has been changed
again so 7MB does not appear in the list.
This commit is contained in:
Damyon Wiese
2013-05-01 12:40:57 +01:00
committed by Dan Poltawski
parent 5f5843f84b
commit 367b977d4d
9 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ if ($ADMIN->fulltree) {
if (isset($CFG->maxbytes)) {
$settings->add(new admin_setting_configselect('assignment_maxbytes', get_string('maximumsize', 'assignment'),
get_string('configmaxbytes', 'assignment'), 1048576, get_max_upload_sizes($CFG->maxbytes)));
get_string('configmaxbytes', 'assignment'), 1048576, get_max_upload_sizes($CFG->maxbytes, 0, 0, $CFG->assignment_maxbytes)));
}
$options = array(ASSIGNMENT_COUNT_WORDS => trim(get_string('numwords', '', '?')),