Merge branch 'MDL-74643-master' of https://github.com/mickhawkins/moodle

This commit is contained in:
Ilya Tregubov 2022-10-31 14:52:47 +03:00
commit 9a723c0e15
13 changed files with 221 additions and 8 deletions

View file

@ -2992,5 +2992,18 @@ privatefiles,moodle|/user/files.php';
upgrade_main_savepoint(true, 2022101400.05);
}
if ($oldversion < 2022102800.01) {
// For sites with "contact site support" already available (4.0.x), maintain existing functionality.
if ($oldversion >= 2022041900.00) {
set_config('supportavailability', CONTACT_SUPPORT_ANYONE);
} else {
// Sites which did not previously have the "contact site support" feature default to it requiring authentication.
set_config('supportavailability', CONTACT_SUPPORT_AUTHENTICATED);
}
// Main savepoint reached.
upgrade_main_savepoint(true, 2022102800.01);
}
return true;
}