diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-05 10:45:38 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-05 10:45:38 -0700 |
| commit | fb4bfa5711f6db61205b58628ec978b68c3d36df (patch) | |
| tree | 7f079a6e7e934fa302cd8bca19e80f8d7a44a3dd /modules/gallery/helpers/gallery_rss.php | |
| parent | 63f3efef37839ffba8cd75b9098d56cd03b06376 (diff) | |
| parent | e8c57290a2e98e3cbb7cf47875e6e5dae2e41fa2 (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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery_rss.php b/modules/gallery/helpers/gallery_rss.php index 7daf6170..8e887368 100644 --- a/modules/gallery/helpers/gallery_rss.php +++ b/modules/gallery/helpers/gallery_rss.php @@ -50,8 +50,9 @@ class gallery_rss_Core { $feed->children = $item ->viewable() - ->descendants($limit, $offset, "photo"); - $feed->max_pages = ceil($item->viewable()->descendants_count("photo") / $limit); + ->descendants($limit, $offset, array("type" => "photo")); + $feed->max_pages = ceil( + $item->viewable()->descendants_count(array("type" => "photo")) / $limit); $feed->title = p::purify($item->title); $feed->link = url::abs_site("albums/{$item->id}"); $feed->description = nl2br(p::purify($item->description)); |
