Browse Source

moved alert message to watchdog and fixed an incorrect default value

pull/104/head
Jason MacWilliams 13 years ago
parent
commit
2e427bb4d1
  1. 4
      plugins/FedoraObjectDetailedContent.inc

4
plugins/FedoraObjectDetailedContent.inc

@ -50,12 +50,12 @@ class FedoraObjectDetailedContent {
); );
module_load_include('inc', 'fedora_repository', 'ObjectDetails'); module_load_include('inc', 'fedora_repository', 'ObjectDetails');
$object_details_profile = variable_get('islandora_object_details_display_table', 'xslt_dc'); $object_details_profile = variable_get('islandora_object_details_display_table', 'xslt');
$profiles = module_invoke_all("islandora_object_details_display"); $profiles = module_invoke_all("islandora_object_details_display");
$profile = $profiles[$object_details_profile]; $profile = $profiles[$object_details_profile];
if (!isset($profile)) { if (!isset($profile)) {
// default behaviour // default behaviour
drupal_set_message(t("There was an error reading the default object details display profile"), "error"); watchdog('fedora_repository', "Error while reading the default object details display profile: @e", array("@e" => $e->getMessage()), WATCHDOG_WARNING);
$dc_html = $objectHelper->getFormattedDC($this->item); $dc_html = $objectHelper->getFormattedDC($this->item);
} }
else { else {

Loading…
Cancel
Save