]> git.mxchange.org Git - friendica.git/commitdiff
get_FormatsMap doesn't need to be static
authorDomovoy <domovoy@errlock.org>
Sun, 22 Jul 2012 15:09:18 +0000 (17:09 +0200)
committerDomovoy <domovoy@errlock.org>
Sun, 22 Jul 2012 15:09:18 +0000 (17:09 +0200)
include/Photo.php

index 982e435f1714f1382056cc062c13019ab73d1461..0fa02072889cb7d65dc029b859e6c68ad88033f2 100644 (file)
@@ -38,18 +38,6 @@ class Photo {
         return $t;
     }
 
-    /**
-     * Maps Mime types to Imagick formats
-     */
-    static function get_FormatsMap() {
-        $m = array(
-            'image/jpeg' => 'JPG',
-            'image/png' => 'PNG',
-            'image/gif' => 'GIF'
-        );
-        return $m;
-    }
-
     public function __construct($data, $type=null) {
         $this->imagick = class_exists('Imagick');
         $this->types = $this->supportedTypes();
@@ -99,6 +87,18 @@ class Photo {
         return $this->imagick;
     }
 
+    /**
+     * Maps Mime types to Imagick formats
+     */
+    public function get_FormatsMap() {
+        $m = array(
+            'image/jpeg' => 'JPG',
+            'image/png' => 'PNG',
+            'image/gif' => 'GIF'
+        );
+        return $m;
+    }
+
     public function is_valid() {
         if($this->is_imagick())
             return ($this->image !== FALSE);