Skip to content

Commit

Permalink
MDL-71914 theme: Disable secondary nav during behat
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Dias committed Oct 26, 2021
1 parent f3ee54a commit 7a67d3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions theme/boost/layout/columns2.php
Expand Up @@ -50,6 +50,8 @@
$moremenu = new \core\navigation\output\more_menu($PAGE->secondarynav, 'nav-tabs');
$secondarynavigation = $moremenu->export_for_template($OUTPUT);
}
} else {
$buildsecondarynavigation = $PAGE->has_secondary_navigation_setter(false);
}

$primary = new core\navigation\output\primary($PAGE);
Expand Down
2 changes: 2 additions & 0 deletions theme/boost/layout/drawers.php
Expand Up @@ -77,6 +77,8 @@
$moremenu = new \core\navigation\output\more_menu($PAGE->secondarynav, 'nav-tabs');
$secondarynavigation = $moremenu->export_for_template($OUTPUT);
}
} else {
$buildsecondarynavigation = $PAGE->has_secondary_navigation_setter(false);
}

$primary = new core\navigation\output\primary($PAGE);
Expand Down
1 change: 1 addition & 0 deletions theme/classic/layout/columns.php
Expand Up @@ -30,6 +30,7 @@

$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
$PAGE->has_secondary_navigation_setter(false);

$templatecontext = [
'sitename' => format_string($SITE->shortname, true, ['context' => context_course::instance(SITEID), "escape" => false]),
Expand Down

0 comments on commit 7a67d3c

Please sign in to comment.