summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-04 01:47:00 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-04 01:47:00 +0000
commit3ee6f6bbc578ecd2f9d0b581bfa9b6e1abac40dd (patch)
tree183fc812676543660c589701be499a59bd36f55c /modules/comment/comment.module
parentaee64c551a51e8c1b9555abc6dc9af9fcd7f5842 (diff)
downloadbrdo-3ee6f6bbc578ecd2f9d0b581bfa9b6e1abac40dd.tar.gz
brdo-3ee6f6bbc578ecd2f9d0b581bfa9b6e1abac40dd.tar.bz2
#903392 by jhodgdon, rayasa: Fixed 'Add new comment' text appears in search result snippet
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 4bb8db7f3..2eebcfb7b 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -650,11 +650,11 @@ function comment_node_view($node, $view_mode) {
}
}
}
- elseif ($view_mode != 'search_index') {
+ elseif ($view_mode != 'search_index' && $view_mode != 'search_result') {
// Node in other view modes: add a "post comment" link if the user is
// allowed to post comments and if this node is allowing new comments.
// But we don't want this link if we're building the node for search
- // indexing.
+ // indexing or constructing a search result excerpt.
if ($node->comment == COMMENT_NODE_OPEN) {
if (user_access('post comments')) {
$links['comment-add'] = array(