Browse Source

Fixed botched commit

pull/108/merge
rwincewicz 13 years ago
parent
commit
d76be48a24
  1. 4
      islandora.module

4
islandora.module

@ -424,16 +424,13 @@ function islandora_islandora_view_object($object) {
$object_models = $object->models; $object_models = $object->models;
$combined_list = array_intersect($supported_models, $object->models); $combined_list = array_intersect($supported_models, $object->models);
$output = ""; $output = "";
<<<<<<< HEAD
if (empty($combined_list)) { if (empty($combined_list)) {
$output = theme('islandora_default', array('islandora_object' => $object)); $output = theme('islandora_default', array('islandora_object' => $object));
return array('Default Output' => $output); return array('Default Output' => $output);
=======
foreach ($object->models as $model) { foreach ($object->models as $model) {
if (isset($supported_models[$model][ISLANDORA_VIEW_HOOK]) && $supported_models[$model][ISLANDORA_VIEW_HOOK] == TRUE) {//another module is handling the view if (isset($supported_models[$model][ISLANDORA_VIEW_HOOK]) && $supported_models[$model][ISLANDORA_VIEW_HOOK] == TRUE) {//another module is handling the view
return; return;
} }
>>>>>>> a364874a78dd45f202ba5ef18292bf77f6bf591e
} }
} }
@ -536,4 +533,5 @@ function islandora_preprocess_islandora_default_edit(&$variables) {
$variables['islandora_datastreams'][$ds->id] = $datastreams; $variables['islandora_datastreams'][$ds->id] = $datastreams;
} }
}
} }
Loading…
Cancel
Save