diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-20 11:34:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-20 11:34:32 +0000 |
commit | 0e7fbe03509e1f80695d094e3436b695849492a0 (patch) | |
tree | d8c93076bdee1990a0c3f5c5f317ddd04d859e61 | |
parent | daad5033e9d5b716f57c1d97ac1e2a548795fdb7 (diff) | |
download | brdo-0e7fbe03509e1f80695d094e3436b695849492a0.tar.gz brdo-0e7fbe03509e1f80695d094e3436b695849492a0.tar.bz2 |
- Patch #323182 by chx and Damien Tournoud: a working code simplification.
-rw-r--r-- | includes/theme.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 5473cb937..99e520ba4 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -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 { |