From 491fff64977e4da8362bb3dd07fec1799da559b1 Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Mon, 1 Mar 2010 13:45:05 +0000 Subject: [PATCH] portfolio/leap MDL-21030 fixed a namespace problem in the leap2a relationships --- lib/portfolio/formats/leap2a/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/portfolio/formats/leap2a/lib.php b/lib/portfolio/formats/leap2a/lib.php index 9efece0ace9..73bba2c2913 100644 --- a/lib/portfolio/formats/leap2a/lib.php +++ b/lib/portfolio/formats/leap2a/lib.php @@ -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); }