theme MDL-22187 upgrade settings page no longer shows blocks

This commit is contained in:
Sam Hemelryk 2010-04-27 03:47:51 +00:00
parent b6a56aeae0
commit 931697773c
2 changed files with 3 additions and 3 deletions

View File

@ -137,7 +137,7 @@ $THEME->layouts = array(
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>true),
'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true),
),
);

View File

@ -3,8 +3,8 @@
$hasheading = ($PAGE->heading);
$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
$hasfooter = (empty($PAGE->layout_options['nofooter']));
$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
$hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT));
$hassidepost = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-post', $OUTPUT));
$bodyclasses = array();
if ($hassidepre && !$hassidepost) {