Issue#321 bootstrap.php: remove require(config.php)

bootstrap.php is supposed to be required from config.php, so it makes
no sense to require config.php in bootstrap.php.
This commit is contained in:
Srdjan
2023-07-03 15:50:30 +10:00
parent bed817cd5e
commit 143862e25a

View File

@@ -29,11 +29,6 @@
* @var stdClass $CFG
*/
// This call is required by Moodle, but this script should have been called by config.php anyway.
// @codingStandardsIgnoreStart
require_once(__DIR__.'/../../config.php');
// @codingStandardsIgnoreEnd
// We need the CFG->dataroot, if not set yet this script is called too early in config.php file.
if (!isset($CFG->dataroot)) {
return;