diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-12-31 13:02:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-12-31 13:02:53 +0000 |
commit | d85e45bf64cb2715f116eae1e0ea422419c0a358 (patch) | |
tree | 9c9794f92b18ce14377ccf7a5b3fb682af693bbd /modules/blog | |
parent | 69f1b4d3e074cc767ebcd3a36328348a601e726a (diff) | |
download | brdo-d85e45bf64cb2715f116eae1e0ea422419c0a358.tar.gz brdo-d85e45bf64cb2715f116eae1e0ea422419c0a358.tar.bz2 |
- Added "x new comments" feature. Requires a SQL update.
- Tidied up some comment related code in node.module.
Diffstat (limited to 'modules/blog')
-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 68c8fee83..ae364e674 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -180,7 +180,7 @@ function blog_page_user($uid = 0, $date = 0) { } if ($blog->comment) { - $links[] = "<a href=\"node.php?id=$blog->nid\">". format_plural(node_get_comments($blog->nid), t("comment"), t("comments")) ."</a>"; + $links[] = "<a href=\"node.php?id=$blog->nid\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) ."</a>"; } $output .= "<tr><td><div style=\"margin-left: 20px;\"><b>". check_output($blog->title) ."</b></div></td><td align=\"right\">". $theme->links($links) ."</td></tr>"; @@ -217,7 +217,7 @@ function blog_page_last() { } if ($blog->comment) { - $links[] = "<a href=\"node.php?id=$blog->nid\">". format_plural(node_get_comments($blog->nid), t("comment"), t("comments")) ."</a>"; + $links[] = "<a href=\"node.php?id=$blog->nid\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) ."</a>"; } $output .= "<tr><td><b>". check_output($blog->title) ."</b></td><td align=\"right\">". $theme->links($links) ."</td></tr>"; |