diff --git a/api/XMLDocument.inc b/api/XMLDocument.inc index 608aab66..6a57ebf1 100644 --- a/api/XMLDocument.inc +++ b/api/XMLDocument.inc @@ -138,6 +138,7 @@ class XMLDocument { * A DOMDocument created using the parameters passed in. */ protected function createDocument($root_name, Namespaces $namespaces, $xml) { + module_load_include('inc', 'islandora', 'includes/utilities'); $document = $this->createDOMDocument(); // Load from XML or create the root node. isset($xml) ? diff --git a/api/XMLFormProcessor.inc b/api/XMLFormProcessor.inc index 61e50bf6..3d5bd690 100644 --- a/api/XMLFormProcessor.inc +++ b/api/XMLFormProcessor.inc @@ -44,6 +44,7 @@ class XMLFormProcessAction { * The value that will be used in execution. */ public function __construct(ActionInterface $action, FormElement $element, $value = NULL) { + module_load_include('inc', 'islandora', 'includes/utilities'); $this->action = $action; $this->element = $element; $this->value = islandora_sanitize_input_for_valid_xml($value);