From db0a23e73c574cc023edb2301f771af92e8bb924 Mon Sep 17 00:00:00 2001 From: Jason MacWilliams Date: Tue, 16 Oct 2012 09:48:11 -0300 Subject: [PATCH] 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 --- api/fedora_item.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/fedora_item.inc b/api/fedora_item.inc index 4a26e516..74168927 100644 --- a/api/fedora_item.inc +++ b/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;