making grabbing grades from 3rd party mods run 20% of the time
This commit is contained in:
+6
-6
@@ -260,6 +260,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// attemps to grab grades from third party/non-stard mods, or mods with no event
|
||||
// implemented for 1.9 and above.
|
||||
mtrace("Grabbing grades from modules if required...");
|
||||
include_once($CFG->dirroot.'/lib/gradelib.php');
|
||||
grades_grab_grades();
|
||||
|
||||
} // End of occasional clean-up tasks
|
||||
|
||||
@@ -380,12 +386,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// attemps to grab grades from third party/non-stard mods, or mods with no event
|
||||
// implemented for 1.9 and above.
|
||||
mtrace("Grabbing grades from modules if required...");
|
||||
include_once($CFG->dirroot.'/lib/gradelib.php');
|
||||
grades_grab_grades();
|
||||
|
||||
//Unset session variables and destroy it
|
||||
@session_unset();
|
||||
|
||||
Reference in New Issue
Block a user