mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 04:01:40 +01:00
Merge branch 'MDL-35517' of git://github.com/stronk7/moodle
This commit is contained in:
commit
81a92474f2
@ -156,7 +156,11 @@ class course_edit_form extends moodleform {
|
||||
$mform->addHelpButton('showreports', 'showreports');
|
||||
$mform->setDefault('showreports', $courseconfig->showreports);
|
||||
|
||||
$choices = get_max_upload_sizes($CFG->maxbytes, 0, 0, $course->maxbytes);
|
||||
// Handle non-existing $course->maxbytes on course creation.
|
||||
$coursemaxbytes = !isset($course->maxbytes) ? null : $course->maxbytes;
|
||||
|
||||
// Let's prepare the maxbytes popup.
|
||||
$choices = get_max_upload_sizes($CFG->maxbytes, 0, 0, $coursemaxbytes);
|
||||
$mform->addElement('select', 'maxbytes', get_string('maximumupload'), $choices);
|
||||
$mform->addHelpButton('maxbytes', 'maximumupload');
|
||||
$mform->setDefault('maxbytes', $courseconfig->maxbytes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user