MDL-55883 mod_lesson: Missing include in lesson_update_events

This commit is contained in:
Stephen Bourget 2016-10-26 21:22:01 -04:00
parent 919b9dfabd
commit 9ff8cdd971

View file

@ -107,6 +107,7 @@ function lesson_update_instance($data, $mform) {
function lesson_update_events($lesson, $override = null) { function lesson_update_events($lesson, $override = null) {
global $CFG, $DB; global $CFG, $DB;
require_once($CFG->dirroot . '/mod/lesson/locallib.php');
require_once($CFG->dirroot . '/calendar/lib.php'); require_once($CFG->dirroot . '/calendar/lib.php');
// Load the old events relating to this lesson. // Load the old events relating to this lesson.