]> git.mxchange.org Git - friendica.git/blobdiff - include/Photo.php
Merge pull request #3866 from annando/detailled_notif
[friendica.git] / include / Photo.php
index a86942ee29486452b7bd938fa6d71fb05320ddd9..343082d1dfa1c8978cc4a6e557ac4f0dc9247b44 100644 (file)
@@ -26,7 +26,7 @@ class Photo {
        /**
         * @brief supported mimetypes and corresponding file extensions
         */
-       static function supportedTypes() {
+       public static function supportedTypes() {
                if (class_exists('Imagick')) {
 
                        // Imagick::queryFormats won't help us a lot there...
@@ -49,7 +49,7 @@ class Photo {
 
        public function __construct($data, $type=null) {
                $this->imagick = class_exists('Imagick');
-               $this->types = $this->supportedTypes();
+               $this->types = static::supportedTypes();
                if (!array_key_exists($type, $this->types)){
                        $type='image/jpeg';
                }