diff options
-rw-r--r-- | start.php | 7 | ||||
-rw-r--r-- | views/rss/object/album.php | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -457,7 +457,12 @@ function tidypics_slideshow($hook, $entity_type, $returnvalue, $params) { return $returnvalue; } - $slideshow_link = "javascript:PicLensLite.start({maxScale:0,feedUrl:location.href+'?view=rss'})"; + $url = current_page_url(); + if (strpos($url, '?')) { + $url = substr($url, 0, strpos($url, '?')); + } + $url = "$url?limit=50&view=rss"; + $slideshow_link = "javascript:PicLensLite.start({maxScale:0,feedUrl:'$url'})"; // add the slideshow javascript to the header elgg_extend_view('metatags', 'tidypics/js/slideshow'); diff --git a/views/rss/object/album.php b/views/rss/object/album.php index a37fdd041..8df98cf7a 100644 --- a/views/rss/object/album.php +++ b/views/rss/object/album.php @@ -42,11 +42,13 @@ if (get_context() == "search" && get_input('search_viewtype') == "gallery") { <?php } + $limit = get_input('limit', 20); $images = elgg_get_entities(array( "type" => "object", "subtype" => "image", "container_guid" => $album->guid, + "limit" => $limit, )); |