mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-43213 fix init regression and remove $checkphp parameter
This commit is contained in:
parent
a0e1168751
commit
9bb80d2005
6 changed files with 33 additions and 23 deletions
|
@ -211,6 +211,7 @@ function behat_check_config_vars() {
|
|||
}
|
||||
if (!file_exists($CFG->behat_dataroot)) {
|
||||
$permissions = isset($CFG->directorypermissions) ? $CFG->directorypermissions : 02777;
|
||||
umask(0);
|
||||
if (!mkdir($CFG->behat_dataroot, $permissions, true)) {
|
||||
behat_error(BEHAT_EXITCODE_PERMISSIONS, '$CFG->behat_dataroot directory can not be created');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue