diff --git a/admin/category.php b/admin/category.php index f6f6d52c9c3..e990383cadb 100644 --- a/admin/category.php +++ b/admin/category.php @@ -131,8 +131,7 @@ if ($savebutton) { $outputhtml .= html_writer::end_tag('div'); } -$visiblepathtosection = array_reverse($settingspage->visiblepath); -$PAGE->set_title(implode(": ",$visiblepathtosection)); +$PAGE->set_title(implode(moodle_page::TITLE_SEPARATOR, $settingspage->visiblepath)); $PAGE->set_heading($SITE->fullname); if ($buttons) { $PAGE->set_button($buttons); diff --git a/admin/settings.php b/admin/settings.php index a67c8a075a6..48171745b3a 100644 --- a/admin/settings.php +++ b/admin/settings.php @@ -129,9 +129,7 @@ if (empty($SITE->fullname)) { $PAGE->set_button($buttons); } - $visiblepathtosection = array_reverse($settingspage->visiblepath); - - $PAGE->set_title(implode(": ",$visiblepathtosection)); + $PAGE->set_title(implode(moodle_page::TITLE_SEPARATOR, $settingspage->visiblepath)); $PAGE->set_heading($SITE->fullname); echo $OUTPUT->header(); diff --git a/lib/adminlib.php b/lib/adminlib.php index 52b4ee2fe0a..a4c6ad400c6 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -8722,8 +8722,6 @@ function admin_externalpage_setup($section, $extrabutton = '', array $extraurlpa $USER->editing = $adminediting; } - $visiblepathtosection = array_reverse($extpage->visiblepath); - if ($PAGE->user_allowed_editing() && !$PAGE->theme->haseditswitch) { if ($PAGE->user_is_editing()) { $caption = get_string('blockseditoff'); @@ -8735,7 +8733,7 @@ function admin_externalpage_setup($section, $extrabutton = '', array $extraurlpa $PAGE->set_button($OUTPUT->single_button($url, $caption, 'get')); } - $PAGE->set_title(implode(": ", $visiblepathtosection)); + $PAGE->set_title(implode(moodle_page::TITLE_SEPARATOR, $extpage->visiblepath)); $PAGE->set_heading($SITE->fullname); if ($hassiteconfig && empty($options['nosearch'])) {