Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-9534, fix xmlize() call

  • Loading branch information...
commit 450f580012a04566ae50919f155df26d499d8c91 1 parent 2668796
dongsheng authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/xmlize.php
  2. +1 −1  mod/data/lib.php
View
2  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
*/
View
2  mod/data/lib.php
@@ -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]['#'];
Please sign in to comment.
Something went wrong with that request. Please try again.