Browse Source

Merge pull request #229 from nigelgbanks/7.x-decode-pid-from-url-on-object-load

Decode the pid when retrieved from the url as it may be encoded, which c...
pull/230/merge
Jonathan Green 12 years ago
parent
commit
082adc1b6a
  1. 2
      islandora.module

2
islandora.module

@ -507,7 +507,7 @@ function islandora_object_load($object_id) {
$tuque = islandora_get_tuque_connection(); $tuque = islandora_get_tuque_connection();
if ($tuque) { if ($tuque) {
try { try {
$object = $tuque->repository->getObject($object_id); $object = $tuque->repository->getObject(urldecode($object_id));
drupal_alter('islandora_object', $object); drupal_alter('islandora_object', $object);
return $object; return $object;
} catch (Exception $e) { } catch (Exception $e) {

Loading…
Cancel
Save