From 10d9c6a92ac0002b4838d6a4056fe9cce5b934ba Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 15 Jun 2009 01:13:12 +0800 Subject: Rename Rss_Controller::__call to Rss_Controller::feed, which changes the feed url to rss/feed//[] 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: --- modules/rss/controllers/rss.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/rss/controllers/rss.php') 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); } -- cgit v1.2.3