diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-03-29 06:37:00 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-03-29 06:37:00 -0700 |
commit | 60286bfba3939974088dcdc8935525f571eaa0eb (patch) | |
tree | 2e73652b394c96476999fe041643c161ea21feac /modules/comment/helpers/comment_rss.php | |
parent | c567d4fb2beedcd250fe7c3121e8da3ab8dbb164 (diff) | |
parent | fc942aacda07346fa9af04853659eaeac1e766d3 (diff) |
Merge commit 'fc942aa'
Diffstat (limited to 'modules/comment/helpers/comment_rss.php')
-rw-r--r-- | modules/comment/helpers/comment_rss.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/comment/helpers/comment_rss.php b/modules/comment/helpers/comment_rss.php index 6434448f..919aac95 100644 --- a/modules/comment/helpers/comment_rss.php +++ b/modules/comment/helpers/comment_rss.php @@ -20,8 +20,16 @@ class comment_rss_Core { static function available_feeds($item, $tag) { - $feeds["comment/newest"] = t("All new comments"); - if ($item) { + $avail = module::get_var("comment", "rss_available"); + if($avail == "none") { + return array(); + } + + if($avail == "both" || $avail == "newest") { + $feeds["comment/newest"] = t("All new comments"); + } + + if ($item && ($avail == "both" || $avail == "onitem")) { $feeds["comment/item/$item->id"] = t("Comments on %title", array("title" => html::purify($item->title))); } |