Browse Source

Make fix slightly more portable.

pull/153/head
Adam Vessey 13 years ago
parent
commit
c69af4854e
  1. 4
      api/fedora_item.inc

4
api/fedora_item.inc

@ -1118,9 +1118,9 @@ RDF;
$created_temp = TRUE; $created_temp = TRUE;
} }
$parts = explode('/', $file); $parts = explode(DIRECTORY_SEPARATOR, $file);
$parts = array_map('rawurlencode', $parts); $parts = array_map('rawurlencode', $parts);
$file_url = file_create_url(implode('/', $parts)); $file_url = file_create_url(implode(DIRECTORY_SEPARATOR, $parts));
$toReturn = $this->modify_datastream_by_reference($file_url, $dsid, $label, $mime_type, $force, $logMessage); $toReturn = $this->modify_datastream_by_reference($file_url, $dsid, $label, $mime_type, $force, $logMessage);

Loading…
Cancel
Save