Skip to content

Commit

Permalink
Address bug introduced in Islandora#262. Include the file containing …
Browse files Browse the repository at this point in the history
…the function
  • Loading branch information
nhart committed Feb 10, 2020
1 parent 970401a commit 0bcbdab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/XMLDocument.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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) ?
Expand Down
1 change: 1 addition & 0 deletions api/XMLFormProcessor.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0bcbdab

Please sign in to comment.