Partially fix #243: fix codingcheck error and disable behat test

This commit is contained in:
Tomo Tsuyuki
2021-03-04 12:02:57 +11:00
parent 19bc18512d
commit 07a8a41ad4
6 changed files with 13 additions and 4 deletions

View File

@@ -30,7 +30,9 @@
*/
// 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)) {