diff --git a/mod/resource/lib.php b/mod/resource/lib.php index 0a330fe374e..65ae201c914 100644 --- a/mod/resource/lib.php +++ b/mod/resource/lib.php @@ -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(); }