MDL-74002 admin: Change conditions for rendering nav tabs
This commit is contained in:
+5
-2
@@ -89,8 +89,11 @@ if ($query && $hassiteconfig) {
|
||||
if ($showsettingslinks) {
|
||||
$node = $PAGE->settingsnav->find('root', navigation_node::TYPE_SITE_ADMIN);
|
||||
if ($node) {
|
||||
$moremenu = new \core\navigation\output\more_menu($PAGE->secondarynav, 'nav-tabs');
|
||||
$secondarynavigation = $moremenu->export_for_template($OUTPUT);
|
||||
$secondarynavigation = false;
|
||||
if ($PAGE->has_secondary_navigation()) {
|
||||
$moremenu = new \core\navigation\output\more_menu($PAGE->secondarynav, 'nav-tabs');
|
||||
$secondarynavigation = $moremenu->export_for_template($OUTPUT);
|
||||
}
|
||||
echo $OUTPUT->render_from_template('core/settings_link_page',
|
||||
['node' => $node, 'secondarynavigation' => $secondarynavigation]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user