Browse Source

Stripping out duplicate extensions.

pull/568/head
willtp87 10 years ago
parent
commit
fd22146956
  1. 2
      includes/mimetype.utils.inc

2
includes/mimetype.utils.inc

@ -84,5 +84,5 @@ function islandora_get_extensions_for_datastream(AbstractObject $object, $dsid)
foreach ($mimes as $mime) {
$extensions = array_merge($extensions, islandora_get_extensions_for_mimetype($mime));
}
return $extensions;
return array_unique($extensions);
}

Loading…
Cancel
Save