|
|
|
@ -1662,6 +1662,12 @@ function islandora_file_mimetype_mapping_alter(&$mapping) {
|
|
|
|
|
end($mapping['mimetypes']); |
|
|
|
|
$mapping['extensions'][$ext] = key($mapping['mimetypes']); |
|
|
|
|
} |
|
|
|
|
// Get the current XML mapping and unset it so it comes last when we do our |
|
|
|
|
// reverse when getting mimetypes from extensions for use in downloads. |
|
|
|
|
// @see islandora_get_extension_for_mimetype. |
|
|
|
|
$xml_int = $mapping['extensions']['xml']; |
|
|
|
|
unset($mapping['extensions']['xml']); |
|
|
|
|
$mapping['extensions']['xml'] = $xml_int; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|