mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 11:26:41 +02:00
MDL-78806 core: Remove redundant site name
MDL-78806 core: Remove redundant site name on page titles * With the site name now being appended to the page titles, there is no need to manually append the page titles.
This commit is contained in:
parent
ff553e5cf4
commit
1eb8ee32bb
43 changed files with 62 additions and 63 deletions
|
@ -332,7 +332,8 @@ if ($user->id == -1 or ($user->id != $USER->id)) {
|
|||
$streditmyprofile = get_string('editmyprofile');
|
||||
$userfullname = fullname($user, true);
|
||||
$PAGE->set_heading($userfullname);
|
||||
$PAGE->set_title("$course->shortname: $streditmyprofile - $userfullname");
|
||||
$coursename = $course->id !== SITEID ? "$course->shortname" : '';
|
||||
$PAGE->set_title("$streditmyprofile: $userfullname" . moodle_page::TITLE_SEPARATOR . $coursename);
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($userfullname);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue