diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-09-11 13:37:52 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-09-11 13:37:52 +0000 |
commit | 4091d9695ec149f9b4515b5ac268dd00b70dfd93 (patch) | |
tree | 2106cbf3c9a0b69ccc5c54beb9d6f5540f2f788b /modules/comment/comment.pages.inc | |
parent | d7bd23107e2908a7bf90fbbb1a2c03e06dbf545d (diff) | |
download | brdo-4091d9695ec149f9b4515b5ac268dd00b70dfd93.tar.gz brdo-4091d9695ec149f9b4515b5ac268dd00b70dfd93.tar.bz2 |
#571604 by catch: Stop calling node_load() 3 times for every comment. ;)
Diffstat (limited to 'modules/comment/comment.pages.inc')
-rw-r--r-- | modules/comment/comment.pages.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.pages.inc b/modules/comment/comment.pages.inc index 0853bcb3b..3ed612c01 100644 --- a/modules/comment/comment.pages.inc +++ b/modules/comment/comment.pages.inc @@ -65,7 +65,7 @@ function comment_reply($node, $pid = NULL) { $comment->node_type = 'comment_node_' . $node->type; field_attach_load('comment', array($comment->cid => $comment)); $comment->name = $comment->uid ? $comment->registered_name : $comment->name; - $build['comment_parent'] = comment_build($comment); + $build['comment_parent'] = comment_build($comment, $node); } else { drupal_set_message(t('The comment you are replying to does not exist.'), 'error'); |