diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-07-17 18:29:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-07-17 18:29:32 +0000 |
commit | 160a1e0ef81c93e805c20e266ab3c8a3890eddac (patch) | |
tree | f29240cc40397bc1bf33aecfe4998ad9093cc135 /modules/blog.module | |
parent | ed3bf725bb3b22f65efbe5c9c3d96c8e6f1a0fd2 (diff) | |
download | brdo-160a1e0ef81c93e805c20e266ab3c8a3890eddac.tar.gz brdo-160a1e0ef81c93e805c20e266ab3c8a3890eddac.tar.bz2 |
- Patch #25634 by chx: simplified node_load().
Diffstat (limited to 'modules/blog.module')
-rw-r--r-- | modules/blog.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/blog.module b/modules/blog.module index 26c2c43aa..8e63edd4f 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -143,7 +143,7 @@ function blog_page_user($uid) { $result = pager_query(db_rewrite_sql("SELECT n.nid, n.sticky, n.created FROM {node} n WHERE type = 'blog' AND n.uid = %d AND n.status = 1 ORDER BY n.sticky DESC, n.created DESC"), variable_get('default_nodes_main', 10), 0, NULL, $account->uid); while ($node = db_fetch_object($result)) { - $output .= node_view(node_load(array('nid' => $node->nid)), 1); + $output .= node_view(node_load($node->nid), 1); } $output .= theme('pager', NULL, variable_get('default_nodes_main', 10)); $output .= theme('xml_icon', url("blog/$account->uid/feed")); @@ -170,7 +170,7 @@ function blog_page_last() { $result = pager_query(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"), variable_get('default_nodes_main', 10)); while ($node = db_fetch_object($result)) { - $output .= node_view(node_load(array('nid' => $node->nid)), 1); + $output .= node_view(node_load($node->nid), 1); } $output .= theme('pager', NULL, variable_get('default_nodes_main', 10)); $output .= theme('xml_icon', url('blog/feed')); @@ -195,7 +195,7 @@ function blog_form(&$node) { ** database and quote it in the blog: */ - if ($nid && $blog = node_load(array('nid' => $nid))) { + if ($nid && $blog = node_load($nid)) { $node->body = '<em>'. $blog->body .'</em> ['. l($blog->name, "node/$nid") .']'; } |