This commit is contained in:
Shish 2017-09-21 14:04:53 +01:00
parent 977c3db1e3
commit 4ea721f681

View File

@ -715,7 +715,7 @@ function getMimeType(string $file, string $ext=""): string {
// Static extension lookup
$ext = strtolower($ext);
if (isset($exts[$ext])) { return MIME_TYPE_MAP[$ext]; }
if (isset(MIME_TYPE_MAP[$ext])) { return MIME_TYPE_MAP[$ext]; }
$type = false;
// Fileinfo documentation says fileinfo_open() will use the