summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-06-26 21:53:37 +1200
committerBrenda Wallace <shiny@cpan.org>2009-07-15 20:16:37 +1200
commitd591e24eac5f37dbff7b17ac039c2e8bc0a33653 (patch)
treebd317b09fbe99f1ba794102d768e15bdb2a80e02
parent1b3c4f2c52e2f983470b8b4e0ffd911694ab2eb5 (diff)
typo in config variable
and pass type='pgsql' in to writeConf
-rw-r--r--install.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.php b/install.php
index e73e20ab6..096746d4a 100644
--- a/install.php
+++ b/install.php
@@ -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;
}