mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-58803 calendar: Require calendar/lib.php
This commit is contained in:
parent
f8633212ee
commit
e8d39b3926
@ -25,7 +25,7 @@ namespace core\task;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
require_once($CFG->libdir . '/cronlib.php');
|
||||
require_once($CFG->dirroot . '/calendar/lib.php');
|
||||
|
||||
/**
|
||||
* Simple task to run the calendar cron.
|
||||
|
@ -6612,6 +6612,7 @@ function calendar_cron() {
|
||||
|
||||
global $CFG, $DB;
|
||||
|
||||
require_once($CFG->dirroot . '/calendar/lib.php');
|
||||
// In order to execute this we need bennu.
|
||||
require_once($CFG->libdir.'/bennu/bennu.inc.php');
|
||||
|
||||
|
@ -24,6 +24,9 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/calendar/lib.php');
|
||||
|
||||
/**
|
||||
* Class containing unit tests for the calendar cron task.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user