Browse Source

Fix for ISLANDORA-219: Warning issued when converting old schema

pull/69/head
Nigel Banks 13 years ago
parent
commit
9db1e4f83b
  1. 7
      CollectionPolicy.inc

7
CollectionPolicy.inc

@ -244,8 +244,8 @@ class CollectionPolicy extends XMLDatastream {
$rootEl->appendChild($relationshipEl);
$newDom->appendChild($rootEl);
$this->xml = DOMDocument::loadXML($newDom->saveXml());
$this->xml = new DOMDocument();
$this->xml->loadXML($newDom->saveXml());
}
/**
@ -427,7 +427,8 @@ class CollectionPolicy extends XMLDatastream {
if ($this->xml == NULL) {
$fedoraItem = new Fedora_Item($this->pid);
$ds = $fedoraItem->get_datastream_dissemination($this->dsid);
$this->xml = DOMDocument::loadXML($ds);
$this->xml = new DOMDocument();
$this->xml->loadXML($ds);
}

Loading…
Cancel
Save