mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
"MDL-13766, fixed maxbytes parameter"
This commit is contained in:
parent
edf2840dd3
commit
ad620df347
@ -42,7 +42,7 @@ class MoodleQuickForm_filemanager extends HTML_QuickForm_element {
|
||||
$this->_options[$name] = $value;
|
||||
}
|
||||
}
|
||||
if (empty($options['maxbytes'])) {
|
||||
if (!empty($options['maxbytes'])) {
|
||||
$this->_options['maxbytes'] = get_max_upload_file_size($CFG->maxbytes, $options['maxbytes']);
|
||||
}
|
||||
parent::HTML_QuickForm_element($elementName, $elementLabel, $attributes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user