MDL-31166 do not try to cleanup data root paths in CLI install script

PARAM_TYPE can not be used for full OS paths. Admins have to enter correct data there, if not they get directory creation error.
This commit is contained in:
Petr Skoda 2012-01-15 11:05:00 +01:00 committed by kordan
parent 11f06bd7f6
commit 401dc2429f

View file

@ -337,12 +337,7 @@ $CFG->httpswwwroot = $CFG->wwwroot;
//We need dataroot before lang download
$dataroot = clean_param($options['dataroot'], PARAM_PATH);
if ($dataroot !== $options['dataroot']) {
$a = (object)array('option' => 'dataroot', 'value' => $options['dataroot']);
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
$CFG->dataroot = $dataroot;
$CFG->dataroot = $options['dataroot'];
if ($interactive) {
cli_separator();
$i=0;