mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
minor fix
This commit is contained in:
parent
b954f78542
commit
2cc6d2e3f9
@ -92,7 +92,7 @@ if (!function_exists ('mime_content_type')) {
|
||||
);
|
||||
|
||||
$ext_fields = explode ('.', $filename);
|
||||
$ext = array_pop ();
|
||||
$ext = array_pop ($ext_fields);
|
||||
$ext = strtolower ($ext);
|
||||
if (array_key_exists ($ext, $mime_types)) {
|
||||
return $mime_types[$ext];
|
||||
|
Loading…
x
Reference in New Issue
Block a user