From: Domovoy Date: Sun, 22 Jul 2012 12:50:19 +0000 (+0200) Subject: Photo::getType() now uses the accurate Imagick::getImageMimeType() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d0bd98d2a7c3c0aa1198c5f261d85c09685db28;p=friendica.git Photo::getType() now uses the accurate Imagick::getImageMimeType() --- diff --git a/include/Photo.php b/include/Photo.php index 1a65949663..a9cef6a903 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -124,8 +124,7 @@ class Photo { return FALSE; if($this->is_imagick()) { - // This should do the trick (see supportedTypes above) - return 'image/'. $this->getExt(); + return $this->image->getImageMimeType(); } return $this->type; }