Merge branch 'master_MDL-77300' of https://github.com/mattporritt/moodle

This commit is contained in:
Andrew Nicols
2023-03-03 15:35:04 +08:00
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -578,7 +578,7 @@ class registration {
}
/**
* Redirect to the site registration form if it's a new install or registration needs updating
* Redirect to the site registration form if it's a new install, upgrade or registration needs updating.
*
* @param string|moodle_url $url
*/
+3
View File
@@ -1921,6 +1921,9 @@ function upgrade_core($version, $verbose) {
$syscontext->mark_dirty();
core_upgrade_time::record_detail('context_system::mark_dirty');
// Prompt admin to register site. Reminder flow handles sites already registered, so admin won't be prompted if registered.
set_config('registrationpending', true);
print_upgrade_part_end('moodle', false, $verbose);
} catch (Exception $ex) {
upgrade_handle_exception($ex);