Skip to content

Commit

Permalink
MDL-71416 report_log: user context header should show users name.
Browse files Browse the repository at this point in the history
Co-Authored-By: Luca Bösch <luca.boesch@bfh.ch>
  • Loading branch information
paulholden and lucaboesch committed Apr 23, 2021
1 parent 3018a35 commit adcd50b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion report/log/user.php
Expand Up @@ -92,7 +92,7 @@
$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);
}
Expand All @@ -105,6 +105,7 @@
echo $OUTPUT->header();
if ($courseid != SITEID) {
$userheading = array(
'heading' => fullname($user, has_capability('moodle/site:viewfullnames', $PAGE->context)),
'user' => $user,
'usercontext' => $personalcontext,
);
Expand Down

0 comments on commit adcd50b

Please sign in to comment.