From: tjhunt Date: Wed, 22 Jul 2009 06:38:26 +0000 (+0000) Subject: blocks MDL-19902: were seeing empty block columns on the front page when not logged in. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fb3611a56712871891b8415adc029931a659bfc2;p=moodle.git blocks MDL-19902: were seeing empty block columns on the front page when not logged in. It turns out the only reliable way to find out whether blocks will appear is to get the contents. :-( --- diff --git a/theme/standard/layout-home.php b/theme/standard/layout-home.php index e5c45d511f..452e6568a7 100644 --- a/theme/standard/layout-home.php +++ b/theme/standard/layout-home.php @@ -29,7 +29,7 @@ a multi-column cross-browser layout too, so this is a temporary hack. --> - blocks->region_has_content('side-pre')) { ?> + blocks->region_has_content('side-pre', $OUTPUT)) { ?> @@ -37,7 +37,7 @@ - blocks->region_has_content('side-post')) { ?> + blocks->region_has_content('side-post', $OUTPUT)) { ?> diff --git a/theme/standard/layout.php b/theme/standard/layout.php index 1b9bbaff5e..7e6a41062d 100644 --- a/theme/standard/layout.php +++ b/theme/standard/layout.php @@ -32,7 +32,7 @@ a multi-column cross-browser layout too, so this is a temporary hack. -->
blocks_for_region('side-pre') ?> [MAIN CONTENT GOES HERE] blocks_for_region('side-post') ?>
- blocks->region_has_content('side-pre')) { ?> + blocks->region_has_content('side-pre', $OUTPUT)) { ?> @@ -40,7 +40,7 @@ - blocks->region_has_content('side-post')) { ?> + blocks->region_has_content('side-post', $OUTPUT)) { ?>
blocks_for_region('side-pre') ?> [MAIN CONTENT GOES HERE] blocks_for_region('side-post') ?>