]> git.mxchange.org Git - friendica.git/blobdiff - include/attach.php
Fetching new queue tasks in a bulk to increase speed
[friendica.git] / include / attach.php
index 6b26b1ed653010653e9243efeefb4deab654904b..ee6f49937af5ea2d56b1c98588f693a1b4e3079c 100644 (file)
@@ -1060,13 +1060,14 @@ function z_mime_content_type($filename) {
                'zsh' => 'text/x-script.zsh',
        );
 
-       $dot = strpos($filename,'.');
-       if($dot !== false) {
-               $ext = strtolower(substr($filename,$dot+1));
+       $dot = strpos($filename, '.');
+       if ($dot !== false) {
+               $ext = strtolower(substr($filename, $dot + 1));
                if (array_key_exists($ext, $mime_types)) {
                        return $mime_types[$ext];
                }
        }
+       /// @TODO Then let's get rid of it?
 // can't use this because we're just passing a name, e.g. not a file that can be opened
 //     elseif (function_exists('finfo_open')) {
 //             $finfo = @finfo_open(FILEINFO_MIME);