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