Skip to content

Commit

Permalink
Fix bootstrap define #352
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Dec 11, 2024
1 parent dae83f4 commit 0a84472
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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.
Expand Down

0 comments on commit 0a84472

Please sign in to comment.