From 99510fff7fb01cdbf5f5c6fd3eed866576e91809 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 10 Jul 2011 13:13:37 +0000 Subject: slideshow and rss feed now show more images --- start.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'start.php') diff --git a/start.php b/start.php index 60dc46579..270173fcf 100644 --- a/start.php +++ b/start.php @@ -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'); -- cgit v1.2.3