From 45d88e56cbc0ef02c5fbc35a05cdcda8bdc19150 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 15 Jan 2012 11:05:00 +0100 Subject: [PATCH] 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. --- admin/cli/install.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/admin/cli/install.php b/admin/cli/install.php index facda351462..b812aaf94a2 100644 --- a/admin/cli/install.php +++ b/admin/cli/install.php @@ -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;