diff options
-rw-r--r-- | modules/comment/comment.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 74f6c21b2..395d84221 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1768,7 +1768,9 @@ function comment_form_submit($form, &$form_state) { _comment_form_submit($form_state['values']); if ($cid = comment_save($form_state['values'])) { $node = node_load($form_state['values']['nid']); - $page = comment_new_page_count($node->comment_count, 1, $node); + // Add 1 to existing $node->comment count to include new comment. + $comment_count = $node->comment_count + 1; + $page = comment_new_page_count($comment_count, 1, $node); $form_state['redirect'] = array('node/' . $node->nid, $page, "comment-$cid"); return; } |