Skip to content

Commit

Permalink
Merge branch 'MDL-58803-master-fix' of git://github.com/junpataleta/m…
Browse files Browse the repository at this point in the history
…oodle
  • Loading branch information
andrewnicols committed May 4, 2017
2 parents 03262b0 + e8d39b3 commit 641af8d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/task/calendar_cron_task.php
Expand Up @@ -25,7 +25,7 @@

defined('MOODLE_INTERNAL') || die();

require_once($CFG->libdir . '/cronlib.php');
require_once($CFG->dirroot . '/calendar/lib.php');

/**
* Simple task to run the calendar cron.
Expand Down
1 change: 1 addition & 0 deletions lib/deprecatedlib.php
Expand Up @@ -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');

Expand Down
3 changes: 3 additions & 0 deletions lib/tests/calendar_cron_task_test.php
Expand Up @@ -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.
*
Expand Down

0 comments on commit 641af8d

Please sign in to comment.