NOBUG backup - delete whitespace typo causing problems in section settings
authorEloy Lafuente <stronk7@moodle.org>
Mon, 5 Jul 2010 21:14:09 +0000 (21:14 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Mon, 5 Jul 2010 21:14:09 +0000 (21:14 +0000)
backup/moodle2/backup_stepslib.php
backup/util/dbops/backup_controller_dbops.class.php

index 0144ecd..588a5a4 100644 (file)
@@ -1076,7 +1076,7 @@ class backup_main_structure_step extends backup_structure_step {
         $settings = new backup_nested_element('settings');
 
         $setting = new backup_nested_element('setting', null, array(
-            'level', 'activity', 'name', 'value'));
+            'level', 'section', 'activity', 'name', 'value'));
 
         // Build the tree
 
index 19fbda9..8a275cb 100644 (file)
@@ -210,7 +210,7 @@ abstract class backup_controller_dbops extends backup_dbops {
             }
             $settinginfo = array(
                 'level'    => 'section',
-                'section ' => $prefix,
+                'section => $prefix,
                 'name'     => $setting->get_name(),
                 'value'    => $setting->get_value());
             $settingsinfo[$setting->get_name()] = (object)$settinginfo;