mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
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:
commit
6a2a54c9be
1 changed files with 6 additions and 0 deletions
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…
Reference in a new issue