From: moodler Date: Tue, 28 Aug 2007 06:11:23 +0000 (+0000) Subject: Don't show block table layout when there are no blocks X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ea6401875e27fde308fc72e4cb1894ba0a42aa6a;p=moodle.git Don't show block table layout when there are no blocks --- diff --git a/tag/index.php b/tag/index.php index 1c5719d4bd..e4aed35909 100644 --- a/tag/index.php +++ b/tag/index.php @@ -42,11 +42,11 @@ echo ''; $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]), 210); -echo ''; if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing()) { + echo ''; blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); + echo ''; } -echo ''; @@ -54,7 +54,6 @@ echo ''; echo ''; - $tagname = tag_display_name($tag); $systemcontext = get_context_instance(CONTEXT_SYSTEM); @@ -92,11 +91,11 @@ echo ''; $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]), 210); -echo ''; if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $PAGE->user_is_editing()) { + echo ''; blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT); + echo ''; } -echo ''; /// Finish the page echo '';