Tidying up to make headings more consistent across boxes

This commit is contained in:
moodler 2007-08-31 02:44:57 +00:00
parent 2773ced471
commit 6cbf4bd4fc
2 changed files with 6 additions and 9 deletions

View file

@ -73,6 +73,9 @@ $usercount = count_items_tagged_with($tag->id,'user');
if ($usercount > 0) { if ($usercount > 0) {
//user table box
print_box_start('generalbox', 'tag-user-table');
$heading = get_string('userstaggedwith', 'tag', $tagname) . ': ' . $usercount; $heading = get_string('userstaggedwith', 'tag', $tagname) . ': ' . $usercount;
print_heading($heading, '', 3); print_heading($heading, '', 3);
@ -82,6 +85,8 @@ if ($usercount > 0) {
print_tagged_users_table($tag, $userpage * $perpage, $perpage); print_tagged_users_table($tag, $userpage * $perpage, $perpage);
print_box_end();
} }

View file

@ -1303,15 +1303,7 @@ function print_tagged_users_table($tag_object, $limitfrom='' , $limitnum='', $re
$limitfrom, $limitfrom,
$limitnum) ); $limitnum) );
$output = ''; $output = print_user_list($userlist, true);
//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
if ($return) { if ($return) {
return $output; return $output;