]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9534, fix xmlize() call
authordongsheng <dongsheng>
Fri, 11 Apr 2008 03:59:41 +0000 (03:59 +0000)
committerdongsheng <dongsheng>
Fri, 11 Apr 2008 03:59:41 +0000 (03:59 +0000)
lib/xmlize.php
mod/data/lib.php

index 34f29dfcf1cf67f87fa04b09c00495fbed850cde..5a9a8ad679c79513d1f980b0ee2d49839e8e1008 100644 (file)
@@ -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
  */
index 8b5c940b68ace1829957efe3d3b071f5f249dca5..7e0eb21d1a717a8e12734fc484f773dc97568362 100755 (executable)
@@ -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]['#'];