Browse Source

Minus superfluous sentence.

pull/608/head
Jordan Dukart 9 years ago
parent
commit
7b30f89c0f
  1. 3
      includes/mimetype.utils.inc

3
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);
}

Loading…
Cancel
Save