mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-71416-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE
This commit is contained in:
commit
523e57fb14
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue