summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-06-26 21:49:44 +1200
committerBrenda Wallace <shiny@cpan.org>2009-07-15 20:09:29 +1200
commit1b3c4f2c52e2f983470b8b4e0ffd911694ab2eb5 (patch)
tree00ad05a8cc561d74fae1557fc615b97d0a2ee830
parentfc3b11bff954c90b93a240d39e5aea3462d0158a (diff)
quote identifiers and type='psql' needs to be written to config.php
-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;
}