Browse Source

Merge e2d0cf0cad into a9443ac5cb

pull/455/merge
ajstanley 12 years ago
parent
commit
ac5504f275
  1. 2
      includes/utilities.inc
  2. 4
      islandora.drush.inc

2
includes/utilities.inc

@ -528,7 +528,7 @@ function islandora_display_repository_inaccessible_message() {
$link = l($text, 'admin/islandora/configure', array('attributes' => array('title' => $text))); $link = l($text, 'admin/islandora/configure', array('attributes' => array('title' => $text)));
$message = t('Could not connect to the repository. Please check the settings on the !link page.', $message = t('Could not connect to the repository. Please check the settings on the !link page.',
array('!link' => $link)); array('!link' => $link));
drupal_set_message(check_plain($message), 'error', FALSE); drupal_set_message(filter_xss($message), 'error', FALSE);
} }

4
islandora.drush.inc

@ -177,10 +177,11 @@ function drush_islandora_solution_pack_install_content_models() {
$objects_to_add = array(); $objects_to_add = array();
foreach ($info['objects'] as $key => $candidate) { foreach ($info['objects'] as $key => $candidate) {
$object = islandora_object_load($candidate); $object = islandora_object_load($candidate);
if (in_array('fedora-system:ContentModel-3.0', $object->models)) { if ($object && in_array('fedora-system:ContentModel-3.0', $object->models)) {
$objects_to_add[] = $candidate; $objects_to_add[] = $candidate;
} }
} }
if (count($objects_to_add) > 0) {
foreach ($objects_to_add as $object_to_add) { foreach ($objects_to_add as $object_to_add) {
$old_object = islandora_object_load($object_to_add->id); $old_object = islandora_object_load($object_to_add->id);
if ($old_object) { if ($old_object) {
@ -197,4 +198,5 @@ function drush_islandora_solution_pack_install_content_models() {
} }
} }
} }
}
} }

Loading…
Cancel
Save