From b932792cb0187406a0d21a3cca62fd4aa1db6f60 Mon Sep 17 00:00:00 2001 From: Brendan Heywood Date: Wed, 11 Dec 2024 11:10:42 +1100 Subject: [PATCH] Fix bootstrap define #352 --- bootstrap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bootstrap.php b/bootstrap.php index 415c9ea..61e32ce 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -30,7 +30,9 @@ * @var stdClass $CFG */ -define('MOODLE_INTERNAL', true); +if (!defined('MOODLE_INTERNAL')) { + define('MOODLE_INTERNAL', true); +} defined('MOODLE_INTERNAL') || die(); // Make sniffer happy. // // We need the CFG->dataroot, if not set yet this script is called too early in config.php file.