Permalink
Browse files

MDL-9534, fix xmlize() call

  • Loading branch information...
dongsheng
dongsheng committed Apr 11, 2008
1 parent 2668796 commit 450f580012a04566ae50919f155df26d499d8c91
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/xmlize.php
  2. +1 −1 mod/data/lib.php
View
@@ -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
*/
View
@@ -1883,7 +1883,7 @@ function get_settings() {
/* 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]['#'];

0 comments on commit 450f580

Please sign in to comment.