mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
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:
parent
146a38dc45
commit
8fa458eb3b
@ -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,
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user