From 3b318d3e69904f72b96512b32105f74bd6f1bc27 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 28 Apr 2015 18:24:21 -0700 Subject: [PATCH] MDL-49932 core_install: removed upgrade step changing 'defaulthomepage' The upgrade step was changing any site that had the setting 'defaulthomepage' set to HOMEPAGE_SITE to HOMEPAGE_MY. We can not make the assumption that users want this setting changed. --- lib/db/upgrade.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 359d6f89147..bdd749e67d7 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -4337,15 +4337,5 @@ function xmldb_main_upgrade($oldversion) { upgrade_main_savepoint(true, 2015040900.02); } - if ($oldversion < 2015040900.03) { - // Change the setting to the new default. - $oldconfig = get_config('core', 'defaulthomepage'); - if ($oldconfig == HOMEPAGE_SITE) { - set_config('defaulthomepage', HOMEPAGE_MY); - } - - upgrade_main_savepoint(true, 2015040900.03); - } - return true; }