add gif to supported image types (if it's supported)

This commit is contained in:
friendica 2014-09-11 15:50:35 -07:00
parent 219b060894
commit 5547222da2

View File

@ -10,7 +10,7 @@ class photo_gd extends photo_driver {
$t = array();
$t['image/jpeg'] ='jpg';
if (imagetypes() & IMG_PNG) $t['image/png'] = 'png';
if (imagetypes() & IMG_GIF) $t['image/gif'] = 'gif';
return $t;
}