From: dongsheng Date: Fri, 11 Apr 2008 03:59:41 +0000 (+0000) Subject: MDL-9534, fix xmlize() call X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=143c1eb92195c2334c9405fd2fc92ff321f7db11;p=moodle.git MDL-9534, fix xmlize() call --- diff --git a/lib/xmlize.php b/lib/xmlize.php index 34f29dfcf1..5a9a8ad679 100644 --- a/lib/xmlize.php +++ b/lib/xmlize.php @@ -39,7 +39,7 @@ * * @author Hans Anderson * @param array $data The array to be converted - * @param int $WHITE If set to 1 allows the parser to skip "space" characters in xml document. Default is 0 + * @param int $WHITE If set to 1 allows the parser to skip "space" characters in xml document. Default is 1 * @param string $encoding Specify an OUTPUT encoding. If not specified, it defaults to UTF-8. * @return array */ diff --git a/mod/data/lib.php b/mod/data/lib.php index 8b5c940b68..7e0eb21d1a 100755 --- a/mod/data/lib.php +++ b/mod/data/lib.php @@ -1889,7 +1889,7 @@ class PresetImporter { /* Grab XML */ $presetxml = file_get_contents($this->folder.'/preset.xml'); - $parsedxml = xmlize($presetxml); + $parsedxml = xmlize($presetxml, 0); /* First, do settings. Put in user friendly array. */ $settingsarray = $parsedxml['preset']['#']['settings'][0]['#'];