MDL-21432 backup - change format of allowed_modules to correct one
authorEloy Lafuente <stronk7@moodle.org>
Tue, 20 Jul 2010 23:47:30 +0000 (23:47 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Tue, 20 Jul 2010 23:47:30 +0000 (23:47 +0000)
backup/moodle2/backup_stepslib.php

index ab537fa..7950a4b 100644 (file)
@@ -281,7 +281,7 @@ class backup_course_structure_step extends backup_structure_step {
 
         $allowedmodules = new backup_nested_element('allowed_modules');
 
-        $module = new backup_nested_element('module', array('modulename'));
+        $module = new backup_nested_element('module', array(), array('modulename'));
 
         // Build the tree