Browse Source

Prevent fatal error when using a batch within a multistep form.

pull/434/head
Nigel Banks 11 years ago
parent
commit
0fa2d5d454
  1. 6
      includes/tuque_wrapper.inc

6
includes/tuque_wrapper.inc

@ -8,7 +8,11 @@
* @todo Overload functions and apply pre/post hooks. * @todo Overload functions and apply pre/post hooks.
*/ */
$islandora_module_path = drupal_get_path('module', 'islandora'); // This function may not exist when a batch operation is running from a
// multistep form.
if (function_exists('drupal_get_path')) {
$islandora_module_path = drupal_get_path('module', 'islandora');
}
// @todo this until we expost these in a module or library // @todo this until we expost these in a module or library
@include_once 'sites/all/libraries/tuque/Datastream.php'; @include_once 'sites/all/libraries/tuque/Datastream.php';

Loading…
Cancel
Save