summaryrefslogtreecommitdiff
path: root/modules/rss/helpers/rss.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-06-15 01:13:12 +0800
committer <unostar@danalan.info>2009-06-15 04:25:58 +0800
commit10d9c6a92ac0002b4838d6a4056fe9cce5b934ba (patch)
tree3eb2ad0a5e6e8c49f2ef19cbfadd511771a157bd /modules/rss/helpers/rss.php
parentfda706f55cab4bd65b90e25a82b59a83e40443ed (diff)
Rename Rss_Controller::__call to Rss_Controller::feed, which changes the feed
url to rss/feed/<feed name>/[<id>] Where feed name is the name of the feed (i.e. albums, updates, comments, tags etc.) and id is the optional element id that the feed applies to. Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules/rss/helpers/rss.php')
-rw-r--r--modules/rss/helpers/rss.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/rss/helpers/rss.php b/modules/rss/helpers/rss.php
index 1d30425f..3c278b49 100644
--- a/modules/rss/helpers/rss.php
+++ b/modules/rss/helpers/rss.php
@@ -21,11 +21,11 @@
class rss_Core {
static function item_feed($item) {
$id = $item->is_album() ? $item->id : $item->parent_id;
- return url::site("rss/albums/$id");
+ return url::site("rss/feed/albums/$id");
}
static function tag_feed($tag) {
- return url::site("rss/tags/$tag->id}");
+ return url::site("rss/feed/tags/$tag->id}");
}
/**
@@ -40,7 +40,7 @@ class rss_Core {
if ($sidebar_only && !$feed["sidebar"]) {
continue;
}
- $feeds[$feed["description"]] = url::site("rss/{$feed['uri']}");
+ $feeds[$feed["description"]] = url::site("rss/feed/{$feed['uri']}");
}
}
}