Skip to content

Commit 8b53829

Browse files
committed
rewrite method getSeasonalGalleries in PHP Kit
rewrite $args array $theme_id set default to null
1 parent aabc3e8 commit 8b53829

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

php/fotolia-api.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,14 @@ public function getGalleries($language_id = Fotolia_Api::LANGUAGE_ID_EN_US)
207207
* @param int $language_id
208208
* @return array
209209
*/
210-
public function getSeasonalGalleries($language_id = Fotolia_Api::LANGUAGE_ID_EN_US, $thumbnail_size = 110, $theme_id = 0)
210+
public function getSeasonalGalleries($language_id = Fotolia_Api::LANGUAGE_ID_EN_US, $thumbnail_size = 110, $theme_id = null)
211211
{
212-
$args = array(
213-
'language_id' => $language_id
214-
,'thumbnail_size' => $thumbnail_size
215-
);
216-
if ((int)$theme_id > 0) $args['theme_id'] = $theme_id;
217-
218-
return $this->_api('getSeasonalGalleries', $args);
212+
return $this->_api('getSeasonalGalleries',
213+
array(
214+
'language_id' => $language_id,
215+
'thumbnail_size' => $thumbnail_size,
216+
'theme_id' => $theme_id
217+
));
219218
}
220219

221220
/**

0 commit comments

Comments
 (0)