diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-15 07:40:57 +0800 |
---|---|---|
committer | <unostar@danalan.info> | 2009-06-15 17:31:17 +0800 |
commit | 3b684655e2afcb6d24885c98a7821db4d6db4e07 (patch) | |
tree | 4ece424ef273b93cbb4ef75cc2ef63f5891057bb /modules/rss/helpers | |
parent | 2ecb00c492c1312e7214c5bb1c2d256225cf2c73 (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.
Signed-off-by: <unostar@danalan.info>
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)) { |