MDL-48266 backup: Validate backup_auto_storage config

This commit is contained in:
Frederic Massart
2015-01-22 17:48:07 +08:00
parent da0ef2e4cf
commit 9fdf16a0fc
3 changed files with 41 additions and 2 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
2 => new lang_string('storagecourseandexternal', 'backup')
);
$temp->add(new admin_setting_configselect('backup/backup_auto_storage', new lang_string('automatedstorage', 'backup'), new lang_string('automatedstoragehelp', 'backup'), 0, $storageoptions));
$temp->add(new admin_setting_configdirectory('backup/backup_auto_destination', new lang_string('saveto'), new lang_string('backupsavetohelp'), ''));
$temp->add(new admin_setting_special_backup_auto_destination());
$keepoptoins = array(
0 => new lang_string('all'), 1 => '1',
2 => '2',