Skip to content
Permalink
Browse files

Stopped a notice.

  • Loading branch information...
willtp87 committed Feb 25, 2015
1 parent 9ac1eed commit d276979548ff0ede989035944aa472f83d20019b
Showing with 5 additions and 3 deletions.
  1. +5 −3 islandora.rules.inc
@@ -406,9 +406,11 @@ function islandora_rules_datastream_load_namespace_vocab($xpath, $xpath_vocab) {
/**
* Rules XPath helper; grab the datastream content and build a DOMXPath.
*/
function islandora_rules_datastream_load_xpath(AbstractDatastream $datastream, $xpath_vocab) {
$result = islandora_rules_datastream_load_domxpath($datastream->content, $xpath_vocab);
islandora_rules_datastream_load_namespace_vocab($result['islandora_domxpath'], $xpath_vocab);
function islandora_rules_datastream_load_xpath(AbstractDatastream $datastream, $xpath_vocab = NULL) {
$result = islandora_rules_datastream_load_domxpath($datastream->content);
if (is_object($xpath_vocab)) {
islandora_rules_datastream_load_namespace_vocab($result['islandora_domxpath'], $xpath_vocab);
}
return $result;
}

0 comments on commit d276979

Please sign in to comment.
You can’t perform that action at this time.