summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_theme.php
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-07-21 19:40:48 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-07-21 19:40:48 -0600
commit63511316be51f193d37c4f3b9dd3455a9ab60de8 (patch)
tree74986ed982d37b06256d5d2501d609314ba52e4e /modules/gallery/helpers/gallery_theme.php
parent7f9e71d8cdcf99267adc2b4a6332e379a0fca0fc (diff)
parentf533aee1cc71e8db739406859ac0cf43dce030ec (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/gallery_theme.php')
-rw-r--r--modules/gallery/helpers/gallery_theme.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php
index 226b8a42..f245ea31 100644
--- a/modules/gallery/helpers/gallery_theme.php
+++ b/modules/gallery/helpers/gallery_theme.php
@@ -32,7 +32,11 @@ class gallery_theme_Core {
if (module::is_active("rss")) {
if ($item = $theme->item()) {
- $buf .= rss::feed_link("gallery/album/{$item->id}");
+ if ($item->is_album()) {
+ $buf .= rss::feed_link("gallery/album/{$item->id}");
+ } else {
+ $buf .= rss::feed_link("gallery/album/{$item->parent()->id}");
+ }
} else if ($tag = $theme->tag()) {
$buf .= rss::feed_link("tag/tag/{$tag->id}");
}