Skip to content

Commit

Permalink
MDL-73848 administration: Fix the Site home settings breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
sharidas authored and junpataleta committed Mar 25, 2022
1 parent 1bb972a commit 49dabbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@
$PAGE->set_title("$SITE->shortname: " . implode(": ",$visiblepathtosection));
$PAGE->set_heading($SITE->fullname);
if ($section === 'frontpagesettings') {
$frontpagenode = $PAGE->settingsnav->find('frontpage', navigation_node::TYPE_SETTING);
$frontpagenode->make_active();
$PAGE->navbar->add(get_string('frontpage', 'admin'),
new moodle_url('/admin/category.php', ['category' => 'frontpage']));
$PAGE->navbar->add(get_string('frontpagesettings', 'admin'), $PAGE->url);
Expand Down

0 comments on commit 49dabbb

Please sign in to comment.