MDL-17754 next round of session related refactoring

This commit is contained in:
skodak 2009-01-02 20:32:05 +00:00
parent 6c928b4cfe
commit b7b64ff2e0
13 changed files with 105 additions and 80 deletions

View file

@ -1769,10 +1769,16 @@ function load_temp_role($context, $roleid, $accessdata) {
/**
* Check all the login enrolment information for the given user object
* by querying the enrolment plugins
* @return void
*/
function check_enrolment_plugins(&$user) {
global $CFG;
if (empty($user->id) or isguestuser($user)) {
// shortcut - there is no enrolment work for guests and not-logged-in users
return;
}
static $inprogress; // To prevent this function being called more than once in an invocation
if (!empty($inprogress[$user->id])) {