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:
David Mudrák 2019-05-23 07:48:54 +02:00 committed by Eloy Lafuente (stronk7)
parent 9e7100cfd1
commit 07839e6af3

View File

@ -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.*