Fix bootstrap define #352

This commit is contained in:
Brendan Heywood
2024-12-11 11:10:42 +11:00
parent 1e3572be9f
commit d16ae47a5f

View File

@@ -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.