Browse Source

Merge branch '7.x' of github.com:Islandora/islandora into 7.x-solution-pack-required-objects-relationships

Conflicts:
	islandora.module
pull/221/head
jonathangreen 12 years ago
parent
commit
c0256f1d5e
  1. 5
      islandora.module

5
islandora.module

@ -167,7 +167,6 @@ function islandora_menu() {
'load arguments' => array('%map'), 'load arguments' => array('%map'),
'type' => MENU_DEFAULT_LOCAL_TASK, 'type' => MENU_DEFAULT_LOCAL_TASK,
); );
$items['islandora/object/%islandora_object/datastream/%islandora_datastream/download'] = array( $items['islandora/object/%islandora_object/datastream/%islandora_datastream/download'] = array(
'title' => 'Download datastream', 'title' => 'Download datastream',
'page callback' => 'islandora_download_datastream', 'page callback' => 'islandora_download_datastream',
@ -597,12 +596,10 @@ function islandora_tokened_datastream_load($datastream_id, $map) {
* object, otherwise it returns NULL which triggers drupal_page_not_found(). * object, otherwise it returns NULL which triggers drupal_page_not_found().
*/ */
function islandora_datastream_load($datastream_id, $object_id) { function islandora_datastream_load($datastream_id, $object_id) {
$object = islandora_object_load($object_id); $object = is_object($object_id) ? $object_id : islandora_object_load($object_id);
if (!$object) { if (!$object) {
return NULL; return NULL;
} }
return $object[$datastream_id]; return $object[$datastream_id];
} }

Loading…
Cancel
Save