eee
This commit is contained in:
+1
-1
@@ -704,7 +704,7 @@ if (!function_exists('get_file_extension')) {
|
|||||||
} else if (function_exists('finfo_open')) {
|
} else if (function_exists('finfo_open')) {
|
||||||
$fInfo = finfo_open(FILEINFO_MIME);
|
$fInfo = finfo_open(FILEINFO_MIME);
|
||||||
$mimeType = finfo_file($fInfo, $filename);
|
$mimeType = finfo_file($fInfo, $filename);
|
||||||
finfo_close($fInfo);
|
// finfo_close($fInfo);
|
||||||
$mimeType = current(explode('; ', $mimeType));
|
$mimeType = current(explode('; ', $mimeType));
|
||||||
if (!($search = array_search($mimeType, $mime_types))) {
|
if (!($search = array_search($mimeType, $mime_types))) {
|
||||||
return $mimeType;
|
return $mimeType;
|
||||||
|
|||||||
Reference in New Issue
Block a user