mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 21:45:37 +02:00
MDL-9534, fix xmlize() call
This commit is contained in:
parent
04dc764091
commit
143c1eb921
@ -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
|
||||
*/
|
||||
|
@ -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]['#'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user