Skip to content

Commit

Permalink
Merge branch 'master_MDL-77300' of https://github.com/mattporritt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Mar 3, 2023
2 parents 479d3a6 + d41770a commit 80f3336
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/hub/registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ public static function get_new_registration_fields() {
}

/**
* 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
*/
Expand Down
3 changes: 3 additions & 0 deletions lib/upgradelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 80f3336

Please sign in to comment.