Permalink
Browse files

MDL-35133 accesslib: context_module::get_context_name should format_s…

…tring

Otherwise activites with multilang names are displayed badly.
  • Loading branch information...
1 parent ce754f1 commit b8c475d63122b136945129ff2dbf39b86974dd75 @timhunt timhunt committed Aug 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/accesslib.php
View
@@ -6419,7 +6419,7 @@ public function get_context_name($withprefix = true, $short = false) {
if ($withprefix){
$name = get_string('modulename', $cm->modname).': ';
}
- $name .= $mod->name;
+ $name .= format_string($mod->name, true, array('context' => $this));
}
}
return $name;

0 comments on commit b8c475d

Please sign in to comment.