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...
timhunt committed Aug 29, 2012
1 parent a1db534 commit fd126f94aaee95a1d3ab8c14c0440769bba513e7
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/accesslib.php
View
@@ -6537,7 +6537,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 fd126f9

Please sign in to comment.