summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2011-07-23 17:01:22 +0000
committerNathan Kinkade <nath@nkinka.de>2011-07-23 17:01:22 +0000
commit2ec6e8d61b63ac5d3fc5cbd6761360539cd9d5e9 (patch)
tree8806b64c686ad472517c95820b0c5b4f0e619127 /modules
parent4ac3be445ebb041a503bbd2999f5d08dbc9a8578 (diff)
parent403f64bf2a91fe3ac2496a0a6a6180ece26afd82 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_rss.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_rss.php b/modules/gallery/helpers/gallery_rss.php
index 612872e6..9af67118 100644
--- a/modules/gallery/helpers/gallery_rss.php
+++ b/modules/gallery/helpers/gallery_rss.php
@@ -21,6 +21,14 @@
class gallery_rss_Core {
static function available_feeds($item, $tag) {
$feeds["gallery/latest"] = t("Latest photos and movies");
+
+ if ($item) {
+ $feed_item = $item -> is_album() ? $item : $item->parent();
+
+ $feeds["gallery/album/{$feed_item->id}"] =
+ t("%title photos and movies", array("title" => $feed_item->title));
+ }
+
return $feeds;
}