EOL / deprecated_eol_php_code

Encyclopedia of Life
http://eol.org/
Other
5 stars 7 forks source link

Get correct mime types for Flickr connector #83

Closed hyanwong closed 10 years ago

hyanwong commented 10 years ago

The Flickr photos.getInfo API returns e.g. originalformat="png” (see https://www.flickr.com/services/api/flickr.photos.getInfo.htm). We can pass this to get_mimetype as a plain extension (modify the get_mimetype function to allow simple extensions to be passed in).

Also correct string comparison operator to use ===, to avoid nasty PHP bugs.