Commit 0e7fbe03 authored by Dries's avatar Dries

- Patch #323182 by chx and Damien Tournoud: a working code simplification.

parent daad5033
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment