1
0
Fork 0

Merge pull request #792 from annando/master

Bugfix: The function "exif_imagetype" doesn't seem to be available at every system. So we emulate it.
This commit is contained in:
fabrixxm 2013-10-23 00:02:51 -07:00
commit 6a2a54c9be

View file

@ -2177,3 +2177,9 @@ function set_template_engine(&$a, $engine = 'internal') {
$a->set_template_engine($engine); $a->set_template_engine($engine);
} }
if(!function_exists('exif_imagetype')) {
function exif_imagetype($file) {
$size = getimagesize($file);
return($size[2]);
}
}