portfolio/leap MDL-21030 fixed a namespace problem in the leap2a relationships

This commit is contained in:
Penny Leach
2010-03-01 13:45:05 +00:00
parent 0e69ec01ff
commit 491fff6497
+2 -1
View File
@@ -171,6 +171,7 @@ class portfolio_format_leap2a_writer {
public function to_xml() {
$this->validate();
foreach ($this->entries as $entry) {
$entry->id = 'portfolio:' . $entry->id;
$this->feed->appendChild($entry->to_dom($this->dom, $this->user));
}
return $this->dom->saveXML();
@@ -416,7 +417,7 @@ class portfolio_format_leap2a_entry {
foreach ($this->links as $otherentry => $l) {
$link = $dom->createElement('link');
$link->setAttribute('rel', $l->rel);
$link->setAttribute('href', $otherentry);
$link->setAttribute('href', 'portfolio:' . $otherentry);
if ($l->order) {
$link->setAttribute('leap:display_order', $l->order);
}