diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-04 13:40:39 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-04 13:40:39 -0700 |
commit | db75ac642a6ff62e814929af99e7c9af4d492706 (patch) | |
tree | 1a4c9c9d5a6d5d221402f92d8ae188a5a21687d4 /modules/comment/helpers/comment_rss.php | |
parent | 32d18920680ee63dc75c3a2b710ef805b31c127c (diff) |
Use the title of the root album as the site title for all RSS feeds.
Fixes ticket #1307.
Diffstat (limited to 'modules/comment/helpers/comment_rss.php')
-rw-r--r-- | modules/comment/helpers/comment_rss.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/comment/helpers/comment_rss.php b/modules/comment/helpers/comment_rss.php index 26d98d21..cc4180bf 100644 --- a/modules/comment/helpers/comment_rss.php +++ b/modules/comment/helpers/comment_rss.php @@ -57,13 +57,19 @@ class comment_rss_Core { "thumb_height" => $item->thumb_height, "thumb_width" => $item->thumb_width, "item_uri" => url::abs_site("{$item->type}s/$item->id"), - "title" => html::purify($item->title), + "title" => ( + ($item->id == item::root()->id) ? + html::purify($item->title) : + t("%site_title - %item_title", + array("site_title" => item::root()->title, + "item_title" => $item->title))), "author" => html::clean($comment->author_name())), ArrayObject::ARRAY_AS_PROPS); } $feed->max_pages = ceil($comments->count_all() / $limit); - $feed->title = htmlspecialchars(t("Recent Comments")); + $feed->title = html::purify(t("%site_title - Recent Comments", + array("site_title" => item::root()->title))); $feed->uri = url::abs_site("albums/" . (empty($id) ? "1" : $id)); $feed->description = t("Recent comments"); |