Skip to content
Snippets Groups Projects
Commit e4e416d1 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 254b8bba
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -328,7 +328,12 @@ function comment_nodeapi(&$node, $op, $arg = 0) { ...@@ -328,7 +328,12 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
return format_plural($comments, '1 comment', '%count comments'); return format_plural($comments, '1 comment', '%count comments');
case 'rss item': 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();
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment