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