diff --git a/includes/mimetype.utils.inc b/includes/mimetype.utils.inc index 62c1824e..81866fc8 100644 --- a/includes/mimetype.utils.inc +++ b/includes/mimetype.utils.inc @@ -23,8 +23,7 @@ function islandora_get_extension_for_mimetype($mimetype) { $extension_index = array_search($mimetype, $mimetype_mapping['mimetypes']); if ($extension_index !== FALSE) { // Reversing such that any altered values take precedence over the default - // mappings. As such we need to handle the case of application/xml mapping - // to .xml. + // mappings. $mime_array_flipped = array_reverse($mimetype_mapping['extensions']); $extension = array_search($extension_index, $mime_array_flipped); }