Skip to content

Commit

Permalink
added logging and removed deprecated calle from cron
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhunt committed Apr 23, 2024
1 parent 55793ae commit 38d9b51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/taskrunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

defined('MOODLE_INTERNAL') || die();

require_once($CFG->libdir . '/cronlib.php');
//pre Moodle 4.2 incl cronlib
if($CFG->version<2023042400) {
require_once($CFG->libdir . '/cronlib.php');
}

/**
*
Expand Down

0 comments on commit 38d9b51

Please sign in to comment.