Merge pull request #353 from catalyst/fix-define

Fix bootstrap define #352
This commit is contained in:
Brendan Heywood
2025-11-29 16:46:21 +11:00
committed by GitHub

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.