making grabbing grades from 3rd party mods run 20% of the time

This commit is contained in:
toyomoyo 2007-05-09 06:14:09 +00:00
parent 48b8bba944
commit 7ea9b0953d

View File

@ -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();