Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'm21_MDL-29519' of git://github.com/danmarsden/moodle in…

…to MOODLE_21_STABLE
  • Loading branch information...
commit d021250bf088c88ccb1e45ea88e7c2f3eabc30e5 2 parents 2b4dcfd + 7af7772
@samhemelryk samhemelryk authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/cronlib.php
View
8 lib/cronlib.php
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.