MDL-73568 admin: show accepted types for stored file config settings.

Re-factor existing code to make use of file manager class that renders
these details for us by default.

Co-authored-by: Simey Lameze <simey@moodle.com>
This commit is contained in:
Paul Holden 2022-01-12 09:17:49 +00:00
parent ceb41588d2
commit 52992d993c
3 changed files with 7 additions and 14 deletions

View file

@ -303,7 +303,7 @@ class core_files_renderer extends plugin_renderer_base {
} else {
$maxsize = get_string('maxfilesize', 'moodle', $maxbytes);
}
// TODO MDL-32020 also should say about 'File types accepted'
return '<span>'. $maxsize . '</span>';
}