mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
MDL-31642 added 'max attachments' to filemanager and 'drag and drop' message inside the box
This commit is contained in:
parent
5bbf3cb72b
commit
adce023069
6 changed files with 30 additions and 4 deletions
|
@ -376,7 +376,13 @@ function form_filemanager_render($options) {
|
|||
$extra = '';
|
||||
}
|
||||
|
||||
$maxsize = get_string('maxfilesize', 'moodle', display_size(get_max_upload_file_size($CFG->maxbytes, $course_maxbytes, $options->maxbytes)));
|
||||
$maxbytes = display_size(get_max_upload_file_size($CFG->maxbytes, $course_maxbytes, $options->maxbytes));
|
||||
if (empty($options->maxfiles) || $options->maxfiles == -1) {
|
||||
$maxsize = get_string('maxfilesize', 'moodle', $maxbytes);
|
||||
} else {
|
||||
$strparam = (object)array('size' => $maxbytes, 'attachments' => $options->maxfiles);
|
||||
$maxsize = get_string('maxsizeandattachments', 'moodle', $strparam);
|
||||
}
|
||||
$strdndenabled = get_string('dndenabled_insentence', 'moodle').$OUTPUT->help_icon('dndenabled');
|
||||
$loading = get_string('loading', 'repository');
|
||||
$html .= <<<FMHTML
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue