From: toyomoyo Date: Wed, 9 May 2007 06:14:09 +0000 (+0000) Subject: making grabbing grades from 3rd party mods run 20% of the time X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7ea9b0953dbc7ada2fa10996ee4a2c3ecdae34e2;p=moodle.git making grabbing grades from 3rd party mods run 20% of the time --- diff --git a/admin/cron.php b/admin/cron.php index 6f33caca30..83a48f1575 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -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();