From 0bcbdab27c33493708c93702cbbc246711b08848 Mon Sep 17 00:00:00 2001 From: Nelson Hart Date: Mon, 10 Feb 2020 11:20:44 -0400 Subject: [PATCH] Address bug introduced in #262. Include the file containing the function --- api/XMLDocument.inc | 1 + api/XMLFormProcessor.inc | 1 + 2 files changed, 2 insertions(+) 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);