MDL-18167 let distros set default dataroot

This commit is contained in:
skodak
2009-02-07 15:23:30 +00:00
parent 5167827bbb
commit 4f9dba35a3
+2 -2
View File
@@ -92,7 +92,7 @@ if (!empty($_POST)) {
} else {
$config->stage = INSTALL_WELCOME;
$config->dbtype = empty($distro->dbtype) ? '' : $distro->dbtype; // let distro packagings skip dbtype selection
$config->dbtype = empty($distro->dbtype) ? '' : $distro->dbtype; // let distro skip dbtype selection
$config->dbhost = 'localhost';
$config->dbuser = '';
$config->dbpass = '';
@@ -103,7 +103,7 @@ if (!empty($_POST)) {
$config->dirroot = dirname(__FILE__);
$config->admin = 'admin';
$config->dataroot = null; // initialised later after including libs
$config->dataroot = empty($distro->dataroot) ? null : $distro->dataroot; // initialised later after including libs or by distro
}
/// Fake some settings so that we can use selected functions from moodlelib.php and weblib.php