summaryrefslogtreecommitdiff
path: root/modules/rss/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-06-14 10:13:12 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-06-14 10:13:12 -0700
commite581440c3d17d3e316b890e2fec393d47006c862 (patch)
treed75cf01d8dd9d81733ede8846d747d4a5045f580 /modules/rss/controllers
parent390bc7c1f6b79924e42b326718ee244ee989243a (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.php5
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);
}