Merge branch 'master_MDL-77300' of https://github.com/mattporritt/moodle
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user