From 712a30b520c67ddc71c3f5a7b0a33ea3ae7b57b7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 8 Dec 2003 18:30:20 +0000 Subject: - 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. --- modules/blog.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/blog.module') diff --git a/modules/blog.module b/modules/blog.module index 90c9e7d60..3eef09394 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -122,7 +122,7 @@ function blog_page_user($uid) { while ($node = db_fetch_object($result)) { $output .= node_view(node_load(array("nid" => $node->nid)), 1); } - $output .= pager_display(NULL, variable_get("default_nodes_main", 10)); + $output .= theme("pager", NULL, variable_get("default_nodes_main", 10)); $output .= "
" . l("\"\"", "blog/feed/$account->uid", array("title" => t("View the XML version of %username's blog", array("%username" => $account->name)))) . "
"; print theme("page", $output, $title); @@ -138,7 +138,7 @@ function blog_page_last() { while ($node = db_fetch_object($result)) { $output .= node_view(node_load(array("nid" => $node->nid)), 1); } - $output .= pager_display(NULL, variable_get("default_nodes_main", 10)); + $output .= theme("pager", NULL, variable_get("default_nodes_main", 10)); $output .= "
". l("\"\"", "blog/feed", array("title" => t("Read the XML version of all blogs."))) ."
"; print theme("page", $output); -- cgit v1.2.3