diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-11-28 04:51:17 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-28 04:51:17 +0000 |
| commit | dec97b42fe94105e39dc5cbadc0051155a123569 (patch) | |
| tree | 2c0337261a00ad3147699b2ee07a8eb6852bbd52 /modules/media_rss/helpers/media_rss_block.php | |
| parent | 3fa12655dd2409981804c9ef065ff4c1d2daa3b6 (diff) | |
Create media_rss helper and move feed generation in there, so that we
can get to the feed from other parts of the code.
Diffstat (limited to 'modules/media_rss/helpers/media_rss_block.php')
| -rw-r--r-- | modules/media_rss/helpers/media_rss_block.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/media_rss/helpers/media_rss_block.php b/modules/media_rss/helpers/media_rss_block.php index e19ceef7..0a88ba70 100644 --- a/modules/media_rss/helpers/media_rss_block.php +++ b/modules/media_rss/helpers/media_rss_block.php @@ -20,13 +20,9 @@ class media_rss_block_Core { public static function head($theme) { if ($theme->item()) { - if ($theme->item()->type == "album") { - $url = url::site("media_rss/albums/{$theme->item()->id}"); - } else { - $url = url::site("media_rss/albums/{$theme->item()->parent_id}"); - } + $url = media_rss::item_feed($theme->item()); } else if ($theme->tag()) { - $url = url::site("media_rss/tags/{$theme->tag()->id}"); + $url = media_rss::tag_feed($theme->tag()); } if (!empty($url)) { |
