From 6cbf4bd4fc66622d50d1109d5bc2d183021d699f Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 31 Aug 2007 02:44:57 +0000 Subject: [PATCH] Tidying up to make headings more consistent across boxes --- tag/index.php | 5 +++++ tag/lib.php | 10 +--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/tag/index.php b/tag/index.php index 6d1745c0a53..4689b782107 100644 --- a/tag/index.php +++ b/tag/index.php @@ -73,6 +73,9 @@ $usercount = count_items_tagged_with($tag->id,'user'); if ($usercount > 0) { + //user table box + print_box_start('generalbox', 'tag-user-table'); + $heading = get_string('userstaggedwith', 'tag', $tagname) . ': ' . $usercount; print_heading($heading, '', 3); @@ -82,6 +85,8 @@ if ($usercount > 0) { print_tagged_users_table($tag, $userpage * $perpage, $perpage); + print_box_end(); + } diff --git a/tag/lib.php b/tag/lib.php index f94a88bb2fa..08344ddbe17 100644 --- a/tag/lib.php +++ b/tag/lib.php @@ -1303,15 +1303,7 @@ function print_tagged_users_table($tag_object, $limitfrom='' , $limitnum='', $re $limitfrom, $limitnum) ); - $output = ''; - - //user table box - $output .= print_box_start('generalbox', 'tag-user-table', true); - - $output .= print_user_list($userlist, true); - - $output .= print_box_end(true); - //end table box + $output = print_user_list($userlist, true); if ($return) { return $output;