summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index b43f2e360..4e981825f 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');
}