mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-65050 core: add missing lib file include
This commit is contained in:
parent
d15b5340cc
commit
6e049bdbc6
@ -45,6 +45,8 @@ class question_preview_cleanup_task extends scheduled_task {
|
||||
* Throw exceptions on errors (the job will be retried).
|
||||
*/
|
||||
public function execute() {
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/question/engine/lib.php');
|
||||
|
||||
// We delete previews that have not been touched for 24 hours.
|
||||
$lastmodifiedcutoff = time() - DAYSECS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user