MDL-35133 accesslib: context_module::get_context_name should format_string

Otherwise activites with multilang names are displayed badly.
This commit is contained in:
Tim Hunt
2012-08-30 22:38:24 +01:00
parent 345892cfb7
commit 34bc5e2f3a
+1 -1
View File
@@ -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;