diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-06-20 17:25:23 -0700 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-20 17:25:23 -0700 | 
| commit | 48af5e6b5039839f93345bef92e1acf7952c50a1 (patch) | |
| tree | 2312b39115837dd5bf1730665635534e0d8d9703 /modules/gallery | |
| parent | 74e821b03ef149a43eb8704fd2350985699d3ded (diff) | |
Rename "children" to "items" in our feed view because it makes more
semantic sense.
Diffstat (limited to 'modules/gallery')
| -rw-r--r-- | modules/gallery/helpers/gallery_rss.php | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gallery/helpers/gallery_rss.php b/modules/gallery/helpers/gallery_rss.php index 9c528c0e..bec34912 100644 --- a/modules/gallery/helpers/gallery_rss.php +++ b/modules/gallery/helpers/gallery_rss.php @@ -28,18 +28,18 @@ class gallery_rss_Core {      $feed = new stdClass();      switch ($feed_id) {      case "latest": -      $feed->children = ORM::factory("item") +      $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("Recent updates");        $feed->description = t("Recent updates");        return $feed; @@ -48,7 +48,7 @@ class gallery_rss_Core {        $item = ORM::factory("item", $id);        access::required("view", $item); -      $feed->children = $item +      $feed->items = $item          ->viewable()          ->descendants($limit, $offset, array(array("type", "=", "photo")));        $feed->max_pages = ceil(  | 
