MDL-36390 - Make sure resource icons are 24px to match activities

This commit is contained in:
Martin Dougiamas 2012-11-06 15:59:32 +08:00 committed by Dan Poltawski
parent 90a23f067c
commit 72225e18e7

View File

@ -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();
}