Skip to content
Permalink
Browse files

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 <luca.boesch@bfh.ch>
  • Loading branch information...
lucaboesch authored and = committed Mar 7, 2017
1 parent 0905763 commit 2e26127821d0ee575f48f11db7a4fd7b3f2a5bf5
Showing with 3 additions and 3 deletions.
  1. +3 −3 report/participation/index.php
@@ -75,8 +75,8 @@
$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 @@
$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;

0 comments on commit 2e26127

Please sign in to comment.
You can’t perform that action at this time.