diff options
-rw-r--r-- | modules/comment.module | 9 | ||||
-rw-r--r-- | modules/comment/comment.module | 9 |
2 files changed, 6 insertions, 12 deletions
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; } /** diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 41db638f7..3e26e24a7 100644 --- a/modules/comment/comment.module +++ b/modules/comment/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; } /** |