MDL-58171 report: role name passing format_text

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 <[email protected]>
This commit is contained in:
Luca Bösch
2017-04-12 15:32:16 +02:00
committed by =
parent f14510d944
commit f3f513ec7b
+3 -3
View File
@@ -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;