diff --git a/boot.php b/boot.php index 2b58d805a5..e94cdcd900 100644 --- a/boot.php +++ b/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]); + } +}