Merge branch MDL-29187-master of git://github.com/samhemelryk/moodle
[moodle.git] / lib / accesslib.php
index 2eea1e5..a2b50e2 100644 (file)
@@ -3584,7 +3584,7 @@ function print_context_name($context, $withprefix = true, $short = false) {
                 if ($withprefix){
                     $name = get_string('category').': ';
                 }
-                $name .=format_string($category->name);
+                $name .= format_string($category->name, true, array('context' => $context));
             }
             break;