mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-36390 - Make sure resource icons are 24px to match activities
This commit is contained in:
parent
90a23f067c
commit
72225e18e7
@ -256,7 +256,7 @@ function resource_get_coursemodule_info($coursemodule) {
|
||||
$files = $fs->get_area_files($context->id, 'mod_resource', 'content', 0, 'sortorder DESC, id ASC', false); // TODO: this is not very efficient!!
|
||||
if (count($files) >= 1) {
|
||||
$mainfile = reset($files);
|
||||
$info->icon = file_file_icon($mainfile);
|
||||
$info->icon = file_file_icon($mainfile, 24);
|
||||
$resource->mainfile = $mainfile->get_filename();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user