MDL-74386 navigation: Remove redundant set_secondary_navigation() calls

Removes $PAGE->set_secondary_navigation(false) calls which certain pages
were using to prevent displaying secondary navigation menu in the system
context. This logic is now generally handled within the secondary
navigation class.
This commit is contained in:
Mihail Geshoski
2022-04-08 15:11:31 +08:00
parent d08c351701
commit 8d0ca00e95
11 changed files with 6 additions and 11 deletions
-1
View File
@@ -36,7 +36,6 @@ $PAGE->set_context($context);
$PAGE->set_title($title);
$PAGE->set_heading($title);
$PAGE->navbar->add($title);
$PAGE->set_secondary_navigation(false);
// This allows the webserver to dictate wether the http status should remain
// what it would have been, or force it to be a 404. Under other conditions