MDL-65050 core: add missing lib file include

This commit is contained in:
Simey Lameze 2019-04-01 15:28:30 +08:00
parent d15b5340cc
commit 6e049bdbc6

View File

@ -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;