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 *