MDL-71416 report_log: user context header should show users name.

Co-Authored-By: Luca Bösch <luca.boesch@bfh.ch>
This commit is contained in:
Paul Holden 2021-04-23 12:47:55 +01:00
parent 146a38dc45
commit 8fa458eb3b

View File

@ -92,7 +92,7 @@ if ($mode === 'today') {
$PAGE->add_report_nodes($user->id, $navigationnode);
if ($courseid == SITEID) {
$PAGE->set_heading(fullname($user));
$PAGE->set_heading(fullname($user, has_capability('moodle/site:viewfullnames', $PAGE->context)));
} else {
$PAGE->set_heading($course->fullname);
}
@ -105,6 +105,7 @@ $event->trigger();
echo $OUTPUT->header();
if ($courseid != SITEID) {
$userheading = array(
'heading' => fullname($user, has_capability('moodle/site:viewfullnames', $PAGE->context)),
'user' => $user,
'usercontext' => $personalcontext,
);