Browse Source

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.
pull/794/head
fabrixxm 8 years ago
parent
commit
6a2a54c9be
  1. 6
      boot.php

6
boot.php

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

Loading…
Cancel
Save