diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-15 01:13:12 +0800 |
---|---|---|
committer | <unostar@danalan.info> | 2009-06-15 04:25:58 +0800 |
commit | 10d9c6a92ac0002b4838d6a4056fe9cce5b934ba (patch) | |
tree | 3eb2ad0a5e6e8c49f2ef19cbfadd511771a157bd /modules/rss/controllers/rss.php | |
parent | fda706f55cab4bd65b90e25a82b59a83e40443ed (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/controllers/rss.php')
-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); } |