Browse Source

fixed typo in get_mimetype

A typo in the get_mimetype_of_datastream function was causing an error and returning nothing any time someone asked for a mimetype, its feeling much better now
pull/175/head
Jason MacWilliams 12 years ago
parent
commit
db0a23e73c
  1. 2
      api/fedora_item.inc

2
api/fedora_item.inc

@ -860,7 +860,7 @@ RDF;
$this->get_datastreams_list_as_SimpleXML();
$mimetype = '';
foreach ($datastream_list as $datastream) {
foreach ($this->datastreams_list as $datastream) {
foreach ($datastream as $datastreamValue) {
if ($datastreamValue->ID == $dsid) {
return $datastreamValue->MIMEType;

Loading…
Cancel
Save