diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-12 12:00:20 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-12 12:00:20 -0700 |
commit | 1406cb7c0fc401b530c10286aa26434a92a2b113 (patch) | |
tree | fd12da0853060f134bdaa5cb4be87a6b3879ffb4 /modules/rss/helpers/rss_theme.php | |
parent | 6749a835e71826d4f8cffb0d859edc0e2b4e6b96 (diff) | |
parent | 30bdaa81233fc2904367cd39017597b33f05efa9 (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/rss/helpers/rss_theme.php')
-rw-r--r-- | modules/rss/helpers/rss_theme.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/modules/rss/helpers/rss_theme.php b/modules/rss/helpers/rss_theme.php index 54bba210..b82133bd 100644 --- a/modules/rss/helpers/rss_theme.php +++ b/modules/rss/helpers/rss_theme.php @@ -40,16 +40,8 @@ class rss_theme_Core { $block->css_id = "gRss"; $block->title = t("Available RSS Feeds"); $block->content = new View("rss_block.html"); - // @todo consider pushing the code for the feeds back to the associated modules - // and create an event 'generate_rss_feeds' that modules can respond to create - // the list of feeds. - $feeds = array(t("New photos or movies") => url::site("rss/updates")); - if (module::is_active("comment")) { - $feeds[t("All new comments")] = url::site("rss/comments"); - $feeds[sprintf(t("Comments on %s"), $theme->item()->title)] = - url::site("rss/comments/{$theme->item()->id}"); - } - $block->content->feeds = $feeds; + $block->content->feeds = rss::get_feeds($theme->item()); + return $block; } } |