NOBUG backup - delete whitespace typo causing problems in section settings

This commit is contained in:
Eloy Lafuente 2010-07-05 21:14:09 +00:00
parent 2e23ad80c4
commit d12fd69be0
2 changed files with 2 additions and 2 deletions

View File

@ -1076,7 +1076,7 @@ class backup_main_structure_step extends backup_structure_step {
$settings = new backup_nested_element('settings'); $settings = new backup_nested_element('settings');
$setting = new backup_nested_element('setting', null, array( $setting = new backup_nested_element('setting', null, array(
'level', 'activity', 'name', 'value')); 'level', 'section', 'activity', 'name', 'value'));
// Build the tree // Build the tree

View File

@ -210,7 +210,7 @@ abstract class backup_controller_dbops extends backup_dbops {
} }
$settinginfo = array( $settinginfo = array(
'level' => 'section', 'level' => 'section',
'section ' => $prefix, 'section' => $prefix,
'name' => $setting->get_name(), 'name' => $setting->get_name(),
'value' => $setting->get_value()); 'value' => $setting->get_value());
$settingsinfo[$setting->get_name()] = (object)$settinginfo; $settingsinfo[$setting->get_name()] = (object)$settinginfo;