diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-12-14 11:55:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-12-14 11:55:54 +0000 |
commit | 99d84c933003d6ecc5a7fe2d81f87cb0e1de9017 (patch) | |
tree | 236a559b110e6094935bd5b72dc6741654d06c83 /modules/blog.module | |
parent | 9c11b14dc65573f4e6348844913158c8a13bea74 (diff) | |
download | brdo-99d84c933003d6ecc5a7fe2d81f87cb0e1de9017.tar.gz brdo-99d84c933003d6ecc5a7fe2d81f87cb0e1de9017.tar.bz2 |
- Committed Marco's pager improvements.
- Fixed another annoyance with editing content.
Diffstat (limited to 'modules/blog.module')
-rw-r--r-- | modules/blog.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog.module b/modules/blog.module index 14cf276b6..14863d550 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -157,7 +157,7 @@ function blog_page_user($uid = 0) { $links[] = lm(t("view recent blog entries"), array("mod" => "blog", "op" => "view"), "", array("title" => t("View all recent blog entries."))); $theme->box(t("%username's blog", array ("%username" => $account->name)), "<center>". $theme->links($links). "</center>"); - $result = db_query_pager("SELECT nid FROM node WHERE type = 'blog' AND uid = '$account->uid' AND status = 1 ORDER BY nid DESC", $user->nodes ? $user->nodes : variable_get("default_nodes_main", 10)); + $result = pager_query("SELECT nid FROM node WHERE type = 'blog' AND uid = '$account->uid' AND status = 1 ORDER BY nid DESC", $user->nodes ? $user->nodes : variable_get("default_nodes_main", 10)); while ($node = db_fetch_object($result)) { node_view(node_load(array("nid" => $node->nid)), 1); } @@ -168,7 +168,7 @@ function blog_page_user($uid = 0) { function blog_page_last() { global $user, $theme; - $result = db_query_pager("SELECT nid FROM node WHERE type = 'blog' AND status = 1 ORDER BY nid DESC", $user->nodes ? $user->nodes : variable_get("default_nodes_main", 10)); + $result = pager_query("SELECT nid FROM node WHERE type = 'blog' AND status = 1 ORDER BY nid DESC", $user->nodes ? $user->nodes : variable_get("default_nodes_main", 10)); while ($node = db_fetch_object($result)) { $output = node_view(node_load(array("nid" => $node->nid)), 1); |