From 34bc5e2f3a39076d511384fe0153ddf8277d3e3e Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 29 Aug 2012 22:25:28 +0100 Subject: [PATCH] MDL-35133 accesslib: context_module::get_context_name should format_string Otherwise activites with multilang names are displayed badly. --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;