Skip to content

Commit

Permalink
Merge branch 'wip-MDL-58180-32' of git://github.com/marinaglancy/mood…
Browse files Browse the repository at this point in the history
…le into MOODLE_32_STABLE
  • Loading branch information
andrewnicols committed Apr 10, 2017
2 parents 90574fd + 042b90d commit b91250e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/statslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,8 @@ function stats_get_report_options($courseid,$mode) {
$sql = 'SELECT r.id, r.name FROM {role} r JOIN {stats_daily} s ON s.roleid = r.id WHERE s.courseid = :courseid GROUP BY r.id, r.name';
if ($roles = $DB->get_records_sql($sql, array('courseid' => $courseid))) {
foreach ($roles as $role) {
$reportoptions[STATS_REPORT_ACTIVITYBYROLE.$role->id] = get_string('statsreport'.STATS_REPORT_ACTIVITYBYROLE). ' '.$role->name;
$reportoptions[STATS_REPORT_ACTIVITYBYROLE.$role->id] = get_string('statsreport'.STATS_REPORT_ACTIVITYBYROLE).
' ' . format_string($role->name, true, ['context' => $context]);
}
}
}
Expand Down

0 comments on commit b91250e

Please sign in to comment.