diff --git a/includes/mimetype.utils.inc b/includes/mimetype.utils.inc index 03708f99..deb7f13b 100644 --- a/includes/mimetype.utils.inc +++ b/includes/mimetype.utils.inc @@ -22,8 +22,7 @@ function islandora_get_extension_for_mimetype($mimetype) { $mimetype_mapping = file_mimetype_mapping(); $extension_index = array_search($mimetype, $mimetype_mapping['mimetypes']); if ($extension_index !== FALSE) { - $mime_array_flipped = array_reverse($mimetype_mapping['extensions']); - $extension = array_search($extension_index, $mime_array_flipped); + $extension = array_search($extension_index, $mimetype_mapping['extensions']); } // We can only have one mapping in drupal for 'xml'.