mirror of
https://github.com/moodle/moodle.git
synced 2025-04-18 23:15:38 +02:00
MDL-71914 theme: Disable secondary nav during behat
This commit is contained in:
parent
f3ee54ae04
commit
7a67d3c0ac
@ -50,6 +50,8 @@ if (!defined('BEHAT_SITE_RUNNING')) {
|
||||
$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);
|
||||
|
@ -77,6 +77,8 @@ if (!defined('BEHAT_SITE_RUNNING')) {
|
||||
$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);
|
||||
|
@ -30,6 +30,7 @@ $blockspost = $OUTPUT->blocks('side-post');
|
||||
|
||||
$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]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user