-
Bug
-
Resolution: Fixed
-
Trivial
-
4.2
As part of MDL-77186 the cron_setup_user function was moved from lib/sessionlib.php to the new core\cron class.
In doing this, a number of long-standing issues were detected with:
- misuse of cron_setup_user
- missing uses of it before tasks are run
- unit test issues
- poor documentation on the function
On master it was also detected that it was not moved to lib/deprecatedlib.php when it was deprecated too.
This issue addresses these problems.