diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-12-08 18:30:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-12-08 18:30:20 +0000 |
commit | 712a30b520c67ddc71c3f5a7b0a33ea3ae7b57b7 (patch) | |
tree | b4ca486bfb1394ab5e53051181c2cc7dd7804ef3 /modules/blog/blog.module | |
parent | ea1acde1d547dfea7b8d0531d1b9ae04f000ea53 (diff) | |
download | brdo-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/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 90c9e7d60..3eef09394 100644 --- a/modules/blog/blog.module +++ b/modules/blog/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 .= "<div class=\"xml-icon\">" . l("<img src=\"". theme("image", "xml.gif") ."\" width=\"36\" height=\"14\" style=\"border: 0px;\" alt=\"\" title=\"\" />", "blog/feed/$account->uid", array("title" => t("View the XML version of %username's blog", array("%username" => $account->name)))) . "</div>"; 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 .= "<div class=\"xml-icon\">". l("<img src=\"". theme("image", "xml.gif") ."\" width=\"36\" height=\"14\" style=\"border: 0px;\" alt=\"\" title=\"\" />", "blog/feed", array("title" => t("Read the XML version of all blogs."))) ."</div>"; print theme("page", $output); |