MDL-48266 core: fixed backup upgrade

This commit is contained in:
Mark Nelson 2015-01-27 21:32:07 -08:00
parent ade0072379
commit 6c85571902

View File

@ -4130,8 +4130,8 @@ function xmldb_main_upgrade($oldversion) {
// storage, and the external path specified is empty we change the setting
// to internal only. That is how the backup code is handling this
// misconfiguration.
$storage = (int) get_config('backup_auto_storage', 'backup');
$folder = get_config('backup_auto_destination', 'backup');
$storage = (int) get_config('backup', 'backup_auto_storage');
$folder = get_config('backup', 'backup_auto_destination');
if ($storage !== 0 && empty($folder)) {
set_config('backup_auto_storage', 0, 'backup');
}