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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user