From d12fd69be0d07b0b6a9e5f846a56bf05d25fca81 Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Mon, 5 Jul 2010 21:14:09 +0000 Subject: [PATCH] NOBUG backup - delete whitespace typo causing problems in section settings --- backup/moodle2/backup_stepslib.php | 2 +- backup/util/dbops/backup_controller_dbops.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/moodle2/backup_stepslib.php b/backup/moodle2/backup_stepslib.php index 0144ecdd1b4..588a5a4e857 100644 --- a/backup/moodle2/backup_stepslib.php +++ b/backup/moodle2/backup_stepslib.php @@ -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 diff --git a/backup/util/dbops/backup_controller_dbops.class.php b/backup/util/dbops/backup_controller_dbops.class.php index 19fbda9cac9..8a275cb2079 100644 --- a/backup/util/dbops/backup_controller_dbops.class.php +++ b/backup/util/dbops/backup_controller_dbops.class.php @@ -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;