Skip to content

Commit

Permalink
Hook for enrolment cron jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jun 25, 2004
1 parent e6012b5 commit 04e4432
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions admin/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@
}
}


/// Run the enrolment cron, if any
require_once("$CFG->dirroot/enrol/$CFG->enrol/enrol.php");
$enrol = new enrolment_plugin();
$enrol->cron();
echo $enrol->log;


echo "Cron script completed correctly\n";

$difftime = microtime_diff($starttime, microtime());
Expand Down

0 comments on commit 04e4432

Please sign in to comment.