-
Improvement
-
Resolution: Fixed
-
Minor
-
4.4
-
MOODLE_404_STABLE
-
MOODLE_404_STABLE
-
master_
MDL-80509 -
-
2
-
Team Hedgehog 2023 Sprint 4.3, Team Hedgehog 2023 Review 4
Currently the form to register a site only appears: once after site install and again after every major upgrade.
An admin can choose to register a site at a later date and there is a registration call to action on admin pages for unregistered sites. However, neither of these are particularly effective at getting administrators to register.
Registered sites provide key (anonymous) information to Moodle HQ, that assists in how we manage, design and support Moodle LMS; so it is important that site admins register their sites.
This patch displays the site registration form to admins after every upgrade, including plugin installs and updates. To further encourage them to register their site.
The new registration prompt will NOT display if:
- The site is already registered
- The site is not set to be public: `$CFG->site_is_public = false;`
If registration is skipped it won't display again until the next upgrade (or if the site was registered).
It will not nag developers who upgrade all the time as part of their dev/test workflows (providing they set: `$CFG->site_is_public = false;`)
Patch notes:
The patch removes the config setting that triggers the registration reminder in the core upgrade function and moves it to the non-core upgrade method.
This is because the non core upgrade is always triggered when the core upgrade method is. So the one setting update covers both core and non-core upgrades, no need to duplicate it.
In the CLI upgrade.php script non-core upgrades are always called. Core upgrades are conditionally called. The same is true for admin index.php (core, non-core).
- has a non-specific relationship to
-
MDL-77300 Prompt to register site after upgrade
- Closed