mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Merge branch 'MDL-80991' of https://github.com/paulholden/moodle
This commit is contained in:
commit
6c9e011d32
@ -184,11 +184,10 @@ class MoodleQuickForm_filepicker extends HTML_QuickForm_input implements templat
|
||||
$html .= "<div><object type='text/html' data='$nonjsfilepicker' height='160' width='600' style='border:1px solid #000'></object></div>";
|
||||
$html .= '</noscript>';
|
||||
|
||||
if (!empty($options->accepted_types) && $options->accepted_types != '*') {
|
||||
if (!empty($args->accepted_types) && $args->accepted_types != '*') {
|
||||
$html .= html_writer::tag('p', get_string('filesofthesetypes', 'form'));
|
||||
$util = new \core_form\filetypes_util();
|
||||
$filetypes = $options->accepted_types;
|
||||
$filetypedescriptions = $util->describe_file_types($filetypes);
|
||||
$filetypedescriptions = $util->describe_file_types($args->accepted_types);
|
||||
$html .= $OUTPUT->render_from_template('core_form/filetypes-descriptions', $filetypedescriptions);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user