Details
Description
The fact that empty($CFG->rolesactive) is the right way to find out whethet Moodle is fully installed is somewhat obscure.
I think it makes code easier to follow if we create a during_initial_install() function.
The fact that empty($CFG->rolesactive) is the right way to find out whethet Moodle is fully installed is somewhat obscure.
I think it makes code easier to follow if we create a during_initial_install() function.
Petr, are you happy for this patch to go in?
(This all started because I noticed that user_login_string uses a different way to check this. I'll fix that in a minutes.)