mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
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:
parent
84ea226616
commit
3b318d3e69
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user