quote identifiers and type='psql' needs to be written to config.php

This commit is contained in:
Brenda Wallace 2009-06-26 21:49:44 +12:00
parent fc3b11bff9
commit 1b3c4f2c52

View File

@ -332,7 +332,7 @@ function mysql_db_installer($host, $database, $username, $password, $sitename) {
}
updateStatus("Done!");
}
function writeConf($sitename, $sqlUrl, $fancy)
function writeConf($sitename, $sqlUrl, $fancy, $type='mysql')
{
$res = file_put_contents(INSTALLDIR.'/config.php',
"<?php\n".
@ -340,6 +340,8 @@ function writeConf($sitename, $sqlUrl, $fancy)
"\$config['site']['name'] = \"$sitename\";\n\n".
($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" : '').
"?>");
return $res;
}