From 6c855719027dca32549ccbaba325df27ef92fcfa Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 27 Jan 2015 21:32:07 -0800 Subject: [PATCH] MDL-48266 core: fixed backup upgrade --- lib/db/upgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 0019f96ca2c..59417d2aa1d 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -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'); }