Skip to content

Commit

Permalink
MDL-50318 course: Fix the URL of embedded images at resources overview
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mudrd8mz committed May 21, 2015
1 parent 803f565 commit 01f329b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
$icon = '<img src="'.$cm->get_icon_url().'" class="activityicon" alt="'.$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 = '';
}
Expand Down

0 comments on commit 01f329b

Please sign in to comment.