summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-12-08 18:30:20 +0000
committerDries Buytaert <dries@buytaert.net>2003-12-08 18:30:20 +0000
commit712a30b520c67ddc71c3f5a7b0a33ea3ae7b57b7 (patch)
treeb4ca486bfb1394ab5e53051181c2cc7dd7804ef3 /modules/comment/comment.module
parentea1acde1d547dfea7b8d0531d1b9ae04f000ea53 (diff)
downloadbrdo-712a30b520c67ddc71c3f5a7b0a33ea3ae7b57b7.tar.gz
brdo-712a30b520c67ddc71c3f5a7b0a33ea3ae7b57b7.tar.bz2
- Improvements by Goba:
+ removes the lots of pagers and indirect pager themeing + add the theme_pager() function, which should be called as theme("pager", ...) to get a pager.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 34e5f039a..635b70487 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -743,7 +743,7 @@ function comment_render($node, $cid = 0) {
** Use the standard pager, $pager_total is the number of returned rows,
** is global and defined in pager.inc
*/
- if ($pager = pager_display(NULL, $comments_per_page, 0, "default", array("comments_per_page" => $comments_per_page))) {
+ if ($pager = theme("pager", NULL, $comments_per_page, 0, array("comments_per_page" => $comments_per_page))) {
$output .= $pager;
}
@@ -994,7 +994,7 @@ function comment_admin_overview($status = 0) {
$rows[] = array(l($comment->subject, "node/view/$comment->nid/$comment->cid#$comment->cid", array("title" => htmlspecialchars(substr($comment->comment, 0, 128)))) ." ". (node_is_new($comment->nid, $comment->timestamp) ? theme("mark") : ""), format_name($comment), ($comment->status == 0 ? t("published") : t("not published")) ."</td><td>". format_date($comment->timestamp, "small") ."</td><td>". l(t("edit comment"), "admin/comment/edit/$comment->cid"), l(t("delete comment"), "admin/comment/delete/$comment->cid"));
}
- if ($pager = pager_display(NULL, 50, 0, "admin", tablesort_pager())) {
+ if ($pager = theme("pager", NULL, 50, 0, tablesort_pager())) {
$rows[] = array(array("data" => $pager, "colspan" => 6));
}