Commit dff2df48 authored by Dries's avatar Dries

- Patch #28786 by Neil: moved pagers out of table.

parent 53bdeae2
......@@ -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;
}
/**
......
......@@ -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;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment