MDL-22414 Fixed moodle1_xml_handler::write_xml() attributes handling

The attributes did not work for nested elements because of the missing
slash.
This commit is contained in:
David Mudrak
2011-06-03 18:54:51 +02:00
parent 513e2215c6
commit 1056c9b914
+1 -1
View File
@@ -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);
}