Merge branch 'master_MDL-29519' of git://github.com/danmarsden/moodle

This commit is contained in:
Sam Hemelryk
2011-09-27 14:09:18 +13:00
+4 -4
View File
@@ -126,10 +126,6 @@ function cron_run() {
}
mtrace('Finished blocks');
//now do plagiarism checks
require_once($CFG->libdir.'/plagiarismlib.php');
plagiarism_cron();
mtrace("Starting quiz reports");
if ($reports = $DB->get_records_select('quiz_reports', "cron > 0 AND ((? - lastcron) > cron)", array($timenow))) {
foreach ($reports as $report) {
@@ -187,6 +183,10 @@ function cron_run() {
mtrace('done');
}
//now do plagiarism checks
require_once($CFG->libdir.'/plagiarismlib.php');
plagiarism_cron();
/// Run all core cron jobs, but not every time since they aren't too important.
/// These don't have a timer to reduce load, so we'll use a random number
/// to randomly choose the percentage of times we should run these jobs.