summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-09-27 18:10:19 +0000
committerDries Buytaert <dries@buytaert.net>2005-09-27 18:10:19 +0000
commitdff2df4809e494afe9fd5b7901cd2a974ab77afc (patch)
treed79a39b2ae34e01e0cb6e42e6472164facd83d39
parent53bdeae273d4dae319f3e01ce8894e961456fa6f (diff)
downloadbrdo-dff2df4809e494afe9fd5b7901cd2a974ab77afc.tar.gz
brdo-dff2df4809e494afe9fd5b7901cd2a974ab77afc.tar.bz2
- Patch #28786 by Neil: moved pagers out of table.
-rw-r--r--modules/comment.module9
-rw-r--r--modules/comment/comment.module9
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;
}
/**