Browse Source

Merge pull request #69 from nigelgbanks/ISLANDORA-219

Fix for ISLANDORA-219: Warning issued when converting old schema
pull/70/merge
Ben Woodhead 13 years ago
parent
commit
517311356a
  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