diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-17 18:06:11 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-17 18:06:11 +0000 |
commit | 7d19e3dc8e2f0637637b4b9041455314cc225320 (patch) | |
tree | 681272a90d664a2f0dc2dd3737049dbd50ef2522 /modules | |
parent | bb961e252392ce177b3118e69cbdd972e178bae9 (diff) | |
download | brdo-7d19e3dc8e2f0637637b4b9041455314cc225320.tar.gz brdo-7d19e3dc8e2f0637637b4b9041455314cc225320.tar.bz2 |
- Patch #8553 by Moshe: hide the 'add new comment' link when showing the
comment form.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment.module | 4 | ||||
-rw-r--r-- | modules/comment/comment.module | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment.module b/modules/comment.module index b43f2e360..4e981825f 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 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'); } |