From 399ad6bf3bb100881b49651ce6725a45f1732c2d Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Thu, 15 Nov 2012 13:25:51 +0800 Subject: [PATCH] MDL-35770 Include file defining base class in order to work correctly in cron --- course/format/scorm/lib.php | 3 +++ course/format/social/lib.php | 3 +++ course/format/topics/lib.php | 3 +++ course/format/weeks/lib.php | 3 +++ 4 files changed, 12 insertions(+) diff --git a/course/format/scorm/lib.php b/course/format/scorm/lib.php index 2bc6b07fd69..0bb518d80c1 100644 --- a/course/format/scorm/lib.php +++ b/course/format/scorm/lib.php @@ -23,6 +23,9 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); +require_once($CFG->dirroot. '/course/format/lib.php'); + /** * Main class for the Scorm course format * diff --git a/course/format/social/lib.php b/course/format/social/lib.php index e6452013ffe..3c84a152822 100644 --- a/course/format/social/lib.php +++ b/course/format/social/lib.php @@ -23,6 +23,9 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); +require_once($CFG->dirroot. '/course/format/lib.php'); + /** * Main class for the Social course format * diff --git a/course/format/topics/lib.php b/course/format/topics/lib.php index b23cd8c0149..0f783e1063b 100644 --- a/course/format/topics/lib.php +++ b/course/format/topics/lib.php @@ -23,6 +23,9 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); +require_once($CFG->dirroot. '/course/format/lib.php'); + /** * Main class for the Topics course format * diff --git a/course/format/weeks/lib.php b/course/format/weeks/lib.php index 7c2dd9ba4f7..ba1f54f9c32 100644 --- a/course/format/weeks/lib.php +++ b/course/format/weeks/lib.php @@ -23,6 +23,9 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); +require_once($CFG->dirroot. '/course/format/lib.php'); + /** * Main class for the Weeks course format *