Browse Source

fixed error message

pull/241/head
Alan Stanley 12 years ago
parent
commit
1471f64ea6
  1. 3
      fedora_repository.module

3
fedora_repository.module

@ -1835,11 +1835,12 @@ function islandora_guarantee_root_collection($pid) {
module_load_include('inc', 'fedora_repository', 'api/fedora_utils'); module_load_include('inc', 'fedora_repository', 'api/fedora_utils');
module_load_include('inc', 'fedora_repository', 'api/fedora_item'); module_load_include('inc', 'fedora_repository', 'api/fedora_item');
if(!fedora_available ()){ if(!fedora_available ()){
drupal_set_message(t('Fedora is not available'));
return; return;
} }
$item = new Fedora_Item($pid); $item = new Fedora_Item($pid);
if ($item->exists()) { if ($item->exists()) {
drupal_set_message(t('Fedora is not available'));
return; return;
} }
$item = Fedora_item::ingest_new_item($pid, 'A', 'Islandora Root Collection', 'admin'); $item = Fedora_item::ingest_new_item($pid, 'A', 'Islandora Root Collection', 'admin');

Loading…
Cancel
Save