diff --git a/lib/accesslib.php b/lib/accesslib.php index 523086375fe..2163435043d 100644 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -6676,7 +6676,7 @@ class context_module extends context { if ($withprefix){ $name = get_string('modulename', $cm->modname).': '; } - $name .= $mod->name; + $name .= format_string($mod->name, true, array('context' => $this)); } } return $name;