]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
typo in config variable
authorBrenda Wallace <shiny@cpan.org>
Fri, 26 Jun 2009 09:53:37 +0000 (21:53 +1200)
committerBrenda Wallace <shiny@cpan.org>
Wed, 15 Jul 2009 08:16:37 +0000 (20:16 +1200)
and pass type='pgsql' in to writeConf

install.php

index e73e20ab6311502fa9036e24ed51e3294b17de2d..096746d4aedfcdcfb284a4b37c9a1e34baa1450e 100644 (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;
 }