diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-06-18 10:36:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-06-18 10:36:22 +0000 |
commit | 84cb9cf5e243d223222aa7fa58600d0f4b762b52 (patch) | |
tree | ee472be5f10f663aafd1f1aae78fcf2d749e70da | |
parent | da79408317e86e42827589c18383e292308a16e2 (diff) | |
download | brdo-84cb9cf5e243d223222aa7fa58600d0f4b762b52.tar.gz brdo-84cb9cf5e243d223222aa7fa58600d0f4b762b52.tar.bz2 |
- Patch #480282 by quicksketch: keep the 'add new comment' link.
-rw-r--r-- | modules/comment/comment.module | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 3e6fb15eb..657e07254 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -471,18 +471,21 @@ function comment_node_view($node, $teaser) { } } else { - // Node page: add a "post comment" link if the user is allowed to post comments, - // if this node is not read-only, and if the comment form isn't already shown. + // Node page: add a "post comment" link if the user is allowed to post + // comments and if this node is not read-only. if ($node->comment == COMMENT_NODE_OPEN) { if (user_access('post comments')) { + $links['comment_add'] = array( + 'title' => t('Add new comment'), + 'attributes' => array('title' => t('Share your thoughts and opinions related to this posting.')), + 'fragment' => 'comment-form', + 'html' => TRUE, + ); if (variable_get('comment_form_location_' . $node->type, COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) { - $links['comment_add'] = array( - 'title' => t('Add new comment'), - 'href' => "comment/reply/$node->nid", - 'attributes' => array('title' => t('Share your thoughts and opinions related to this posting.')), - 'fragment' => 'comment-form', - 'html' => TRUE, - ); + $links['comment_add']['href'] = "comment/reply/$node->nid"; + } + else { + $links['comment_add']['href'] = "node/$node->nid"; } } else { |