]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18167 let distros set default dataroot
authorskodak <skodak>
Sat, 7 Feb 2009 15:23:30 +0000 (15:23 +0000)
committerskodak <skodak>
Sat, 7 Feb 2009 15:23:30 +0000 (15:23 +0000)
install.php

index 2e1b7d832b1e243d7657dc39998e22506e8b5bff..a3a36bd88383243599489928501b4c3fe5f715ed 100644 (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