mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +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
|
@ -6,8 +6,12 @@ if ($ADMIN->fulltree) {
|
|||
require_once($CFG->dirroot.'/mod/assignment/lib.php');
|
||||
|
||||
if (isset($CFG->maxbytes)) {
|
||||
$maxbytes = 0;
|
||||
if (isset($CFG->assignment_maxbytes)) {
|
||||
$maxbytes = $CFG->assignment_maxbytes;
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('assignment_maxbytes', get_string('maximumsize', 'assignment'),
|
||||
get_string('configmaxbytes', 'assignment'), 1048576, get_max_upload_sizes($CFG->maxbytes, 0, 0, $CFG->assignment_maxbytes)));
|
||||
get_string('configmaxbytes', 'assignment'), 1048576, get_max_upload_sizes($CFG->maxbytes, 0, 0, $maxbytes)));
|
||||
}
|
||||
|
||||
$options = array(ASSIGNMENT_COUNT_WORDS => trim(get_string('numwords', '', '?')),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue