diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-14 10:13:12 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-14 10:13:12 -0700 |
commit | e581440c3d17d3e316b890e2fec393d47006c862 (patch) | |
tree | d75cf01d8dd9d81733ede8846d747d4a5045f580 /modules/rss/controllers | |
parent | 390bc7c1f6b79924e42b326718ee244ee989243a (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.
Diffstat (limited to 'modules/rss/controllers')
-rw-r--r-- | modules/rss/controllers/rss.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/rss/controllers/rss.php b/modules/rss/controllers/rss.php index 164803cb..8cf083db 100644 --- a/modules/rss/controllers/rss.php +++ b/modules/rss/controllers/rss.php @@ -20,10 +20,9 @@ class Rss_Controller extends Controller { public static $page_size = 30; - public function __call($method, $arguments) { - $id = empty($arguments) ? null : $arguments[0]; + public function feed($method, $id=null) { $page = $this->input->get("page", 1); - $feed_uri = "rss/$method" . (empty($id) ? "" : "/$id"); + $feed_uri = "rss/feed/$method" . (empty($id) ? "" : "/$id"); if ($page < 1) { url::redirect($feed_uri); } |