|
|
@ -53,7 +53,7 @@ function islandora_view_datastream(AbstractDatastream $datastream, $download = F |
|
|
|
if ($download) { |
|
|
|
if ($download) { |
|
|
|
// Browsers will not append all extensions. |
|
|
|
// Browsers will not append all extensions. |
|
|
|
$mime_detect = new MimeDetect(); |
|
|
|
$mime_detect = new MimeDetect(); |
|
|
|
$extension = '.' . islandora_get_extension_for_mimetype($datastream->mimetype);//$mime_detect->getExtension($datastream->mimetype); |
|
|
|
$extension = '.' . islandora_get_extension_for_mimetype($datastream->mimetype); |
|
|
|
// Prevent adding on a duplicate extension. |
|
|
|
// Prevent adding on a duplicate extension. |
|
|
|
$label = $datastream->label; |
|
|
|
$label = $datastream->label; |
|
|
|
$extension_length = strlen($extension); |
|
|
|
$extension_length = strlen($extension); |
|
|
|