mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
Merge branch 'MDL-74643-master' of https://github.com/mickhawkins/moodle
This commit is contained in:
commit
9a723c0e15
13 changed files with 221 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue