]> git.mxchange.org Git - friendica.git/commitdiff
Photo::getType() now uses the accurate Imagick::getImageMimeType()
authorDomovoy <domovoy@errlock.org>
Sun, 22 Jul 2012 12:50:19 +0000 (14:50 +0200)
committerDomovoy <domovoy@errlock.org>
Sun, 22 Jul 2012 12:50:19 +0000 (14:50 +0200)
include/Photo.php

index 1a659496638c7d79ca52b8347746bb438ada41bd..a9cef6a903713f07187a2d7f33342e0564554e86 100644 (file)
@@ -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;
     }