From b4f2c13dcbda8ed21182d9b5167cbf7be004513a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 31 Jul 2010 14:41:04 -0700 Subject: [PATCH] Updated to reflect the API change in 48af5e6b5039839f93345bef92e1acf7952c50a1 --- modules/latestalbums/helpers/latestalbums_rss.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/latestalbums/helpers/latestalbums_rss.php b/modules/latestalbums/helpers/latestalbums_rss.php index 995aef1f..8aca12a7 100644 --- a/modules/latestalbums/helpers/latestalbums_rss.php +++ b/modules/latestalbums/helpers/latestalbums_rss.php @@ -27,18 +27,19 @@ class latestalbums_rss_Core { static function feed($feed_id, $offset, $limit, $id) { switch ($feed_id) { case "latest": - $feed->children = ORM::factory("item") + $feed = new stdClass(); + $feed->items = ORM::factory("item") ->viewable() ->where("type", "=", "album") ->order_by("created", "DESC") ->find_all($limit, $offset); - $all_children = ORM::factory("item") + $all_items = ORM::factory("item") ->viewable() ->where("type", "=", "album") ->order_by("created", "DESC"); - $feed->max_pages = ceil($all_children->find_all()->count() / $limit); + $feed->max_pages = ceil($all_items->find_all()->count() / $limit); $feed->title = t("Latest albums"); $feed->description = t("Most recently created albums"); return $feed;