diff --git a/modules/comment.module b/modules/comment.module index b43f2e360d426c3f7bddd596c55e4d19acabd0f5..4e981825fb872af21769139082d53edc9ada8644 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -755,9 +755,9 @@ function comment_link($type, $node = 0, $main = 0) { } else { // Node page: add a "post comment" link if the user is allowed to - // post comments and if this node is not read-only + // post comments, if this node is not read-only, and if the comment form isn't already shown - if ($node->comment == 2) { + if ($node->comment == 2 && variable_get('comment_form_location', 0) == 0) { if (user_access('post comments')) { $links[] = l(t('add new comment'), "comment/reply/$node->nid", array('title' => t('Share your thoughts and opinions related to this posting.')), NULL, 'comment'); } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index b43f2e360d426c3f7bddd596c55e4d19acabd0f5..4e981825fb872af21769139082d53edc9ada8644 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -755,9 +755,9 @@ function comment_link($type, $node = 0, $main = 0) { } else { // Node page: add a "post comment" link if the user is allowed to - // post comments and if this node is not read-only + // post comments, if this node is not read-only, and if the comment form isn't already shown - if ($node->comment == 2) { + if ($node->comment == 2 && variable_get('comment_form_location', 0) == 0) { if (user_access('post comments')) { $links[] = l(t('add new comment'), "comment/reply/$node->nid", array('title' => t('Share your thoughts and opinions related to this posting.')), NULL, 'comment'); }