diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-14 16:40:57 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-14 16:40:57 -0700 |
commit | 00fad54c0babfb0643c2ab9da98b4b74af84d466 (patch) | |
tree | a9f863c0139c2c2e5b7e4356e780f7aca37423c7 /modules/rss/helpers | |
parent | 47bc53eb5c328254d431caebf8acfd2636969bb4 (diff) |
Refactor feed code to use stdClass everywhere. Fix bugs in the
max-pages calculation code. Move feed related data into the $feed
variable and only pass that to the view.
Diffstat (limited to 'modules/rss/helpers')
-rw-r--r-- | modules/rss/helpers/rss.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/rss/helpers/rss.php b/modules/rss/helpers/rss.php index 403ee225..8a7d0c97 100644 --- a/modules/rss/helpers/rss.php +++ b/modules/rss/helpers/rss.php @@ -33,9 +33,7 @@ class rss_Core { $class_name = "{$module->name}_rss"; if (method_exists($class_name, "available_feeds")) { foreach (call_user_func(array($class_name, "available_feeds"), $item) as $feed) { - if ($feed["type"] == "block") { - $feeds[$feed["description"]] = url::site("rss/feed/{$feed['uri']}"); - } + $feeds[$feed["description"]] = url::site("rss/feed/{$feed['uri']}"); } } } @@ -43,7 +41,7 @@ class rss_Core { return $feeds; } - static function feed_data($feed, $offset, $limit, $id) { + static function feed_data($method, $offset, $limit, $id) { foreach (module::active() as $module) { $class_name = "{$module->name}_rss"; if (method_exists($class_name, $feed)) { |