diff -r 94406595e9e0 install.php --- a/install.php Wed Dec 12 13:18:52 2007 +0900 +++ b/install.php Wed Dec 12 13:20:12 2007 +0900 @@ -267,16 +267,8 @@ if ($INSTALL['stage'] == DIRECTORY) { if ($INSTALL['stage'] == DATABASE) { - /// different format for postgres7 by socket - if ($INSTALL['dbtype'] == 'postgres7' and ($INSTALL['dbhost'] == 'localhost' || $INSTALL['dbhost'] == '127.0.0.1')) { - $INSTALL['dbhost'] = "user='{$INSTALL['dbuser']}' password='{$INSTALL['dbpass']}' dbname='{$INSTALL['dbname']}'"; - $INSTALL['dbuser'] = ''; - $INSTALL['dbpass'] = ''; - $INSTALL['dbname'] = ''; - - if ($INSTALL['prefix'] == '') { /// must have a prefix + if (($INSTALL['dbtype'] == 'postgres7') && ($INSTALL['prefix'] == '')) { /// must have a prefix $INSTALL['prefix'] = 'mdl_'; - } } if ($INSTALL['dbtype'] == 'mysql') { /// Check MySQL extension is present