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.
This commit is contained in:
Mark Nelson 2015-04-28 18:24:21 -07:00
parent 84ea226616
commit 3b318d3e69

View File

@ -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;
}