From 1056c9b9145bd7660baec793937bc8f5671f5a88 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Thu, 2 Jun 2011 18:31:48 +0200 Subject: [PATCH] MDL-22414 Fixed moodle1_xml_handler::write_xml() attributes handling The attributes did not work for nested elements because of the missing slash. --- backup/converter/moodle1/handlerlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/converter/moodle1/handlerlib.php b/backup/converter/moodle1/handlerlib.php index 9501b87506e..fc6c60ef529 100644 --- a/backup/converter/moodle1/handlerlib.php +++ b/backup/converter/moodle1/handlerlib.php @@ -234,7 +234,7 @@ abstract class moodle1_xml_handler extends moodle1_handler { foreach ($data as $name => $value) { if (is_array($value)) { // recursively call self - $this->write_xml($name, $value, $attribs, $mypath); + $this->write_xml($name, $value, $attribs, $mypath.'/'); } else { $this->xmlwriter->full_tag($name, $value); }