wrong type returned for gif

pull/252/head
brendan braybrook 10 years ago committed by Aleksander Machniak
parent a1bb59d601
commit eff2a2768d

@ -166,7 +166,7 @@ class rcube_image
}
else if($props['gd_type'] == IMAGETYPE_GIF && function_exists('imagecreatefromgif')) {
$image = imagecreatefromgif($this->image_file);
$type = 'gid';
$type = 'gif';
}
else if($props['gd_type'] == IMAGETYPE_PNG && function_exists('imagecreatefrompng')) {
$image = imagecreatefrompng($this->image_file);

Loading…
Cancel
Save