X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FMimetype.php;h=b2d0e2641ec4887653da5f38a68572078b499b1b;hb=48baa0be4b662b7c3d2afebad3b78324677fec14;hp=ea3b9e8216c80f97d21df5b0fe82ef006e7147f3;hpb=8e5e6030088e2cef2a590ae284d11c00e279486c;p=friendica.git diff --git a/src/Util/Mimetype.php b/src/Util/Mimetype.php index ea3b9e8216..b2d0e2641e 100644 --- a/src/Util/Mimetype.php +++ b/src/Util/Mimetype.php @@ -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'; } }