MDL-24072 installer: initialize moodledata content even if the directory itself already exists

This commit is contained in:
David Mudrak 2010-09-20 08:20:32 +00:00
parent 807ee8bcd9
commit 1656452410

View File

@ -315,6 +315,10 @@ if ($config->stage == INSTALL_DOWNLOADLANG) {
$config->stage = INSTALL_PATHS;
}
}
} else if (!install_init_dataroot($CFG->dataroot, $CFG->directorypermissions)) {
$hint_dataroot = get_string('pathserrcreatedataroot', 'install', $a);
$config->stage = INSTALL_PATHS;
}
if (empty($hint_dataroot) and !is_writable($CFG->dataroot)) {