typo in config variable

and pass type='pgsql' in to writeConf
This commit is contained in:
Brenda Wallace 2009-06-26 21:53:37 +12:00
parent 1b3c4f2c52
commit d591e24eac

View File

@ -275,7 +275,7 @@ function pgsql_db_installer($host, $database, $username, $password, $sitename) {
else {
$sqlUrl = "pgsql://$username:$password@$host/$database";
}
$res = writeConf($sitename, $sqlUrl, $fancy);
$res = writeConf($sitename, $sqlUrl, $fancy, 'pgsql');
if (!$res) {
updateStatus("Can't write config file.", true);
showForm();
@ -341,7 +341,7 @@ function writeConf($sitename, $sqlUrl, $fancy, $type='mysql')
($fancy ? "\$config['site']['fancy'] = true;\n\n":'').
"\$config['db']['database'] = \"$sqlUrl\";\n\n".
($type == 'pgsql' ? "\$config['db']['quote_identifiers'] = true;\n\n" .
"\$config['db']['dbtype'] = \"$type\";\n\n" : '').
"\$config['db']['type'] = \"$type\";\n\n" : '').
"?>");
return $res;
}