--- modules/comment/comment.module.orig	2008-05-07 21:45:43.000000000 +0200
+++ modules/comment/comment.module	2008-05-07 21:47:33.000000000 +0200
@@ -406,11 +406,9 @@ function comment_link($type, $node = NUL
       // Main page: display the number of comments that have been posted.
 
       if (user_access('access comments')) {
-        $all = comment_num_all($node->nid);
-
-        if ($all) {
+        if ($node->comment_count) {
           $links['comment_comments'] = array(
-            'title' => format_plural($all, '1 comment', '@count comments'),
+            'title' => format_plural($node->comment_count, '1 comment', '@count comments'),
             'href' => "node/$node->nid",
             'attributes' => array('title' => t('Jump to the first comment of this posting.')),
             'fragment' => 'comments'
@@ -422,7 +420,7 @@ function comment_link($type, $node = NUL
             $links['comment_new_comments'] = array(
               'title' => format_plural($new, '1 new comment', '@count new comments'),
               'href' => "node/$node->nid",
-              'query' => comment_new_page_count($all, $new, $node),
+              'query' => comment_new_page_count($node->comment_count, $new, $node),
               'attributes' => array('title' => t('Jump to the first new comment of this posting.')),
               'fragment' => 'new'
             );
