- Rollback of #323182; parse error.

merge-requests/26/head
Dries Buytaert 2008-10-19 20:32:41 +00:00
parent dc1c2946da
commit d0bd78238c
1 changed files with 1 additions and 1 deletions

View File

@ -1799,7 +1799,7 @@ function template_preprocess_page(&$variables) {
// Load all region content assigned via blocks.
foreach (array_keys($regions) as $region) {
// Prevent left and right regions from rendering blocks when 'show_blocks' == FALSE.
if ($variables['show_blocks'] || ($region != 'left' && $region != 'right'))) {
if (!(!$variables['show_blocks'] && ($region == 'left' || $region == 'right'))) {
$blocks = theme('blocks', $region);
}
else {