mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-70173 core: Use a meaningful first level header
This commit is contained in:
parent
23ed4c4440
commit
e3142ca2e2
2 changed files with 6 additions and 3 deletions
|
@ -62,14 +62,15 @@ if (isguestuser()) { // Force them to see system default, no editing allowed
|
|||
$USER->editing = $edit = 0; // Just in case
|
||||
$context = context_system::instance();
|
||||
$PAGE->set_blocks_editing_capability('moodle/my:configsyspages'); // unlikely :)
|
||||
$header = "$SITE->shortname: $strmymoodle (GUEST)";
|
||||
$strguest = get_string('guest');
|
||||
$header = "$SITE->shortname: $strmymoodle ($strguest)";
|
||||
$pagetitle = $header;
|
||||
|
||||
} else { // We are trying to view or edit our own My Moodle page
|
||||
$userid = $USER->id; // Owner of the page
|
||||
$context = context_user::instance($USER->id);
|
||||
$PAGE->set_blocks_editing_capability('moodle/my:manageblocks');
|
||||
$header = fullname($USER);
|
||||
$header = "$SITE->shortname: $strmymoodle";
|
||||
$pagetitle = $strmymoodle;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue