From fa80c13db92d894768cbdc4443fae69bb92ace1b Mon Sep 17 00:00:00 2001 From: Braulio Ribeiro Date: Wed, 20 Aug 2014 16:18:44 -0300 Subject: [PATCH] Thumbnail for Album don't work Work $gallery = $f->photosets_getList($id); foreach($gallery['photoset'] as $photo) { --- phpFlickr.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpFlickr.php b/phpFlickr.php index 975371e..0e840a3 100644 --- a/phpFlickr.php +++ b/phpFlickr.php @@ -368,6 +368,11 @@ function buildPhotoURL ($photo, $size = "Medium") { //receives an array (can use the individual photo data returned //from an API call) and returns a URL (doesn't mean that the //file size exists) + + $id = $photo['id']; + if (isset($photo['primary'])) // Get Thumb Album + $id = $photo['primary']; + $sizes = array( "square" => "_s", "square_75" => "_s",