diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-21 11:25:03 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-21 11:25:03 -0700 |
commit | 90ba32065578289898040f686cce766bfeb9cb51 (patch) | |
tree | 949d0c5f28b41546571ec45f85de30d0cce990ef /modules | |
parent | 2de6b77d61f79248eff99f439a96de6d5cb68f6f (diff) |
The RSS link should go to the parent album when looking at photos/movies.
Fixes ticket #566.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/helpers/gallery_theme.php | 6 |
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}"); } |