mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-39077 maxbytes - fix warnings for cli install
This commit is contained in:
parent
e7ff753cab
commit
c9c01f75b1
5 changed files with 19 additions and 7 deletions
|
@ -33,11 +33,11 @@ if (isset($CFG->maxbytes)) {
|
|||
$name = new lang_string('maximumsubmissionsize', 'assignsubmission_file');
|
||||
$description = new lang_string('configmaxbytes', 'assignsubmission_file');
|
||||
|
||||
$config = get_config('assignsubmission_file');
|
||||
$maxbytes = get_config('assignsubmission_file', 'maxbytes');
|
||||
$element = new admin_setting_configselect('assignsubmission_file/maxbytes',
|
||||
$name,
|
||||
$description,
|
||||
1048576,
|
||||
get_max_upload_sizes($CFG->maxbytes, 0, 0, $config->maxbytes));
|
||||
get_max_upload_sizes($CFG->maxbytes, 0, 0, $maxbytes));
|
||||
$settings->add($element);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue