summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-07-13 12:29:15 +0000
committerDries Buytaert <dries@buytaert.net>2006-07-13 12:29:15 +0000
commite4e416d1f7037dbee8e06096a6c41368d011599c (patch)
tree6f3cf8033a2d50c92365dc816280b98c8a641135 /modules
parent254b8bbaac8f4fe30481c254564f9bf231c6d38c (diff)
downloadbrdo-e4e416d1f7037dbee8e06096a6c41368d011599c.tar.gz
brdo-e4e416d1f7037dbee8e06096a6c41368d011599c.tar.bz2
- Patch #73351 by Kris, Goba et al: only display comment link in RSS, if applicable.
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/comment.module7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 6272aa436..c89d2f1d9 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -328,7 +328,12 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
return format_plural($comments, '1 comment', '%count comments');
case 'rss item':
- return array(array('key' => 'comments', 'value' => url('node/'. $node->nid, NULL, 'comment', TRUE)));
+ if ($node->comment != COMMENT_NODE_DISABLED) {
+ return array(array('key' => 'comments', 'value' => url('node/'. $node->nid, NULL, 'comment', TRUE)));
+ }
+ else {
+ return array();
+ }
}
}