]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Mimetype.php
Remove get_server() in favor of Search::getGlobalDirectory()
[friendica.git] / src / Util / Mimetype.php
index ea3b9e8216c80f97d21df5b0fe82ef006e7147f3..b2d0e2641ec4887653da5f38a68572078b499b1b 100644 (file)
@@ -12,7 +12,7 @@ class Mimetype
         * @param string $filename filename
         * @return mixed array or string
         */
-       public static function contentType($filename)
+       public static function getContentType($filename)
        {
                $mime_types = [
        
@@ -1077,8 +1077,7 @@ class Mimetype
                        if (array_key_exists($ext, $mime_types)) {
                                return $mime_types[$ext];
                        }
-               } else {
-                       return 'application/octet-stream';
                }
+               return 'application/octet-stream';
        }
 }