From d85e45bf64cb2715f116eae1e0ea422419c0a358 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 31 Dec 2001 13:02:53 +0000 Subject: - Added "x new comments" feature. Requires a SQL update. - Tidied up some comment related code in node.module. --- modules/blog/blog.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/blog/blog.module') 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[] = "nid\">". format_plural(node_get_comments($blog->nid), t("comment"), t("comments")) .""; + $links[] = "nid\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) .""; } $output .= "
". check_output($blog->title) ."
". $theme->links($links) .""; @@ -217,7 +217,7 @@ function blog_page_last() { } if ($blog->comment) { - $links[] = "nid\">". format_plural(node_get_comments($blog->nid), t("comment"), t("comments")) .""; + $links[] = "nid\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) .""; } $output .= "". check_output($blog->title) ."". $theme->links($links) .""; -- cgit v1.2.3