Merge branch 'MDL-33686_options' of git://github.com/andyjdavis/moodle
This commit is contained in:
+2
-2
@@ -455,10 +455,10 @@ class core_files_renderer extends plugin_renderer_base {
|
||||
*/
|
||||
private function fm_print_restrictions($fm) {
|
||||
$maxbytes = display_size($fm->options->maxbytes);
|
||||
if (empty($options->maxfiles) || $options->maxfiles == -1) {
|
||||
if (empty($fm->options->maxfiles) || $fm->options->maxfiles == -1) {
|
||||
$maxsize = get_string('maxfilesize', 'moodle', $maxbytes);
|
||||
} else {
|
||||
$strparam = (object)array('size' => $maxbytes, 'attachments' => $options->maxfiles);
|
||||
$strparam = (object)array('size' => $maxbytes, 'attachments' => $fm->options->maxfiles);
|
||||
$maxsize = get_string('maxsizeandattachments', 'moodle', $strparam);
|
||||
}
|
||||
// TODO MDL-32020 also should say about 'File types accepted'
|
||||
|
||||
Reference in New Issue
Block a user