X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FPhoto.php;h=343082d1dfa1c8978cc4a6e557ac4f0dc9247b44;hb=e40c3a9d7c980c4287c273bc12d934ceb8b55fc0;hp=a86942ee29486452b7bd938fa6d71fb05320ddd9;hpb=0695fa699c3aeae086d419326868098716e99ce5;p=friendica.git diff --git a/include/Photo.php b/include/Photo.php index a86942ee29..343082d1df 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -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'; }