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 <[email protected]>
This commit is contained in:
Paul Holden
2022-06-24 10:13:09 +01:00
co-authored by Simey Lameze
parent ceb41588d2
commit 52992d993c
3 changed files with 7 additions and 14 deletions
+1 -1
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>';
}