- Open phpFlickr.php
- Go to line #664 or so if you have version 2.3.0.1, or simply find (ctrl+F) by "favorites_getPublicList"
- After the function open brackets, before the return values, insert the following:
if(is_array($extras)) $extras = implode(",", $extras); - Save File and have fun.
A collection of my thoughts/opinions/articles on programming, philosophy, music (or simply essays) and pretty much anything I haven't found a proper place to yield yet
Friday, July 24, 2009
phpFlickr - return 'extras' array from favorites_getPublicList()
I figured this might help someone because as of using one of Flickr's php API class (phpFlickr class, 2.3.0.1), I wanted to fetch extra data from favorites_getPublicList() through the 'extras' argument but the class returned nothing. Of course, this is not a major issue, and Dan Cloutier already made a great job at putting this class together, but just in case you want to get these variables, here's how I did it.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment