summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--install.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/install.php b/install.php
index 1b8b7655c..e73e20ab6 100644
--- a/install.php
+++ b/install.php
@@ -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;
}