Merge commit 'fc942aa'

This commit is contained in:
Bharat Mediratta
2012-03-29 06:37:00 -07:00
3 changed files with 26 additions and 3 deletions
+10 -2
View File
@@ -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)));
}