From 51726f9e4b8372c40b27f843fca7b783e6db9623 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 12 Jul 2011 21:44:40 -0700 Subject: Fix for ticket #1752. Add an RSS field link for the current album. Or, in the case of a photo or movie, add a link to the rss field of the parent album. --- modules/gallery/helpers/gallery_rss.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- cgit v1.2.3 From 403f64bf2a91fe3ac2496a0a6a6180ece26afd82 Mon Sep 17 00:00:00 2001 From: Automatic Build Number Updater Date: Tue, 12 Jul 2011 21:44:14 -0700 Subject: Automated update of .build_number to 163 for branch master Last update: e8382b960a3c19bb28140833e348e6c9c9db8a8a (1 commits ago) --- .build_number | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build_number b/.build_number index 79e7274f..a10819e7 100644 --- a/.build_number +++ b/.build_number @@ -3,4 +3,4 @@ ; process. You don't need to edit it. In fact.. ; ; DO NOT EDIT THIS FILE BY HAND! -build_number=162 +build_number=163 -- cgit v1.2.3