From dff2df4809e494afe9fd5b7901cd2a974ab77afc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 27 Sep 2005 18:10:19 +0000 Subject: - Patch #28786 by Neil: moved pagers out of table. --- modules/comment.module | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index 41db638f7..3e26e24a7 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -1005,7 +1005,6 @@ function comment_delete($cid) { * Menu callback; present an administrative comment listing. */ function comment_admin_overview($type = 'new') { - $header = array( array('data' => t('Subject'), 'field' => 'subject'), array('data' => t('Author'), 'field' => 'u.name'), @@ -1032,15 +1031,13 @@ function comment_admin_overview($type = 'new') { ); } - if ($pager = theme('pager', NULL, 50, 0, tablesort_pager())) { - $rows[] = array(array('data' => $pager, 'colspan' => '6')); - } - if (!$rows) { $rows[] = array(array('data' => t('No comments available.'), 'colspan' => '6')); } - return theme('table', $header, $rows); + $output = theme('table', $header, $rows); + $output .= theme('pager', NULL, 50, 0, tablesort_pager()); + return $output; } /** -- cgit v1.2.3