From c19b7667ae72c9ae78095003ab8325ab9bd5142b Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 25 Dec 2009 10:17:22 +0000 Subject: #654854 by marcingy and yched: Remove unneeded node_build() when creating a new comment. --- modules/comment/comment.pages.inc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'modules') diff --git a/modules/comment/comment.pages.inc b/modules/comment/comment.pages.inc index 345b9ceb7..f1c9ca6ae 100644 --- a/modules/comment/comment.pages.inc +++ b/modules/comment/comment.pages.inc @@ -72,10 +72,6 @@ function comment_reply($node, $pid = NULL) { drupal_goto("node/$node->nid"); } } - // This is the case where the comment is in response to a node. Display the node. - elseif (user_access('access content')) { - $build['comment_node'] = node_view($node); - } // Should we show the reply box? if ($node->comment != COMMENT_NODE_OPEN) { -- cgit v1.2.3