From 99c0ad51b49d35f755226955fad9e1e995d682d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Tue, 7 Mar 2017 23:32:43 +0100 Subject: [PATCH] MDL-58171 report: role name passing format_text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Have the role name in h2 of the participation report passing filters like multilang2 by having it call format_text. Signed-off-by: Luca Bösch --- report/participation/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/report/participation/index.php b/report/participation/index.php index 964a1690c03..0400e6e5037 100644 --- a/report/participation/index.php +++ b/report/participation/index.php @@ -75,8 +75,8 @@ if (!array_key_exists($action, $actionoptions)) { $action = ''; } -$PAGE->set_title($course->shortname .': '. $strparticipation); -$PAGE->set_heading($course->fullname); +$PAGE->set_title(format_string($course->shortname, true, array('context' => $context)) .': '. $strparticipation); +$PAGE->set_heading(format_string($course->fullname, true, array('context' => $context))); echo $OUTPUT->header(); $uselegacyreader = false; // Use legacy reader with sql_internal_table_reader to aggregate records. @@ -327,7 +327,7 @@ if (!empty($instanceid) && !empty($roleid)) { $a = new stdClass(); $a->count = $totalcount; - $a->items = $role->name; + $a->items = format_string($role->name, true, array('context' => $context)); if ($matchcount != $totalcount) { $a->count = $matchcount.'/'.$a->count;