From 2daaae15ea5aa886cb2c700e076231b288db292d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Thu, 21 May 2015 17:18:05 +0200 Subject: [PATCH] MDL-50318 course: Fix the URL of embedded images at resources overview Not only mod_resource instances are listed here. All modules that declare their FEATURE_MOD_ARCHETYPE as MOD_ARCHETYPE_RESOURCE (well, all but those without own view page, such as mod_label) are listed. So we must use the real plugin name when rendering the intro field. --- course/resources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/resources.php b/course/resources.php index 400b4780461..cc05fd65153 100644 --- a/course/resources.php +++ b/course/resources.php @@ -134,7 +134,7 @@ foreach ($cms as $cm) { $icon = ''.$cm->get_module_type_name().' '; if (isset($resource->intro) && isset($resource->introformat)) { - $intro = format_module_intro('resource', $resource, $cm->id); + $intro = format_module_intro($cm->modname, $resource, $cm->id); } else { $intro = ''; }