MDL-17057 dml: fixed regression changed by removed dbpersist parameter - sorrrry

This commit is contained in:
skodak
2008-10-29 09:24:45 +00:00
parent aa9671c990
commit 2f17b76d4b
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -464,12 +464,12 @@ if (!file_exists(dirname(dirname(__FILE__)) . '/config.php')) {
if (empty($errormsg)) {
error_reporting(0); // Hide errors
if (! $dbconnected = $DB->connect($INSTALL['dbhost'], $INSTALL['dbuser'], $INSTALL['dbpass'], $INSTALL['dbname'], false, $INSTALL['prefix'])) {
if (! $dbconnected = $DB->connect($INSTALL['dbhost'], $INSTALL['dbuser'], $INSTALL['dbpass'], $INSTALL['dbname'], $INSTALL['prefix'])) {
if (!$DB->create_database($INSTALL['dbhost'], $INSTALL['dbuser'], $INSTALL['dbpass'], $INSTALL['dbname'])) {
$errormsg = get_string('dbcreationerror', 'install');
$nextstage = DATABASE;
} else {
$dbconnected = $DB->connect($INSTALL['dbhost'], $INSTALL['dbuser'], $INSTALL['dbpass'], $INSTALL['dbname'], false, $INSTALL['prefix']);
$dbconnected = $DB->connect($INSTALL['dbhost'], $INSTALL['dbuser'], $INSTALL['dbpass'], $INSTALL['dbname'], $INSTALL['prefix']);
}
} else {
// TODO: db encoding checks ??