Commit e4e416d1 authored by Dries's avatar Dries

- Patch #73351 by Kris, Goba et al: only display comment link in RSS, if applicable.

parent 254b8bba
......@@ -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();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment