diff options
| author | Nathan Kinkade <nkinkade@nkinka.de> | 2010-01-03 15:51:24 +0000 | 
|---|---|---|
| committer | Nathan Kinkade <nkinkade@nkinka.de> | 2010-01-03 15:51:24 +0000 | 
| commit | 399abbc3a754cf5fdcfdff113446e1bc264091e2 (patch) | |
| tree | 592188568e15325d59e51bf19cfdf667fae8d86d /modules/gallery/helpers/gallery_rss.php | |
| parent | 925a6a2220760cb7daacee1ab80a07b61b3a30a1 (diff) | |
| parent | 64e5efd57ba1479179c202e1b76b6eeb42d2924c (diff) | |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/gallery_rss.php')
| -rw-r--r-- | modules/gallery/helpers/gallery_rss.php | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/modules/gallery/helpers/gallery_rss.php b/modules/gallery/helpers/gallery_rss.php index 155edfb5..d422636f 100644 --- a/modules/gallery/helpers/gallery_rss.php +++ b/modules/gallery/helpers/gallery_rss.php @@ -29,14 +29,14 @@ class gallery_rss_Core {      case "latest":        $feed->children = ORM::factory("item")          ->viewable() -        ->where("type !=", "album") -        ->orderby("created", "DESC") +        ->where("type", "<>", "album") +        ->order_by("created", "DESC")          ->find_all($limit, $offset);        $all_children = ORM::factory("item")          ->viewable() -        ->where("type !=", "album") -        ->orderby("created", "DESC"); +        ->where("type", "<>", "album") +        ->order_by("created", "DESC");        $feed->max_pages = ceil($all_children->find_all()->count() / $limit);        $feed->title = t("Recent updates"); @@ -49,9 +49,9 @@ class gallery_rss_Core {        $feed->children = $item          ->viewable() -        ->descendants($limit, $offset, array("type" => "photo")); +        ->descendants($limit, $offset, array(array("type", "=", "photo")));        $feed->max_pages = ceil( -        $item->viewable()->descendants_count(array("type" => "photo")) / $limit); +        $item->viewable()->descendants_count(array(array("type", "=", "photo"))) / $limit);        $feed->title = html::purify($item->title);        $feed->description = nl2br(html::purify($item->description)); | 
