mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-65694 grade: Fix missing gradelib library
In the be8f453b74fbd3 the gradelib loading was removed by mistake. So the library may not be loaded and executing the task may end with the exception - class 'grade_grade' not found.
This commit is contained in:
parent
9e7100cfd1
commit
07839e6af3
@ -43,6 +43,7 @@ class grade_cron_task extends scheduled_task {
|
||||
*/
|
||||
public function execute() {
|
||||
global $CFG, $DB;
|
||||
require_once($CFG->libdir . '/gradelib.php');
|
||||
|
||||
$now = time();
|
||||
$sql = "SELECT i.*
|
||||
|
Loading…
x
Reference in New Issue
Block a user