]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
quote identifiers and type='psql' needs to be written to config.php
authorBrenda Wallace <shiny@cpan.org>
Fri, 26 Jun 2009 09:49:44 +0000 (21:49 +1200)
committerBrenda Wallace <shiny@cpan.org>
Wed, 15 Jul 2009 08:09:29 +0000 (20:09 +1200)
install.php

index 1b8b7655c6135d6e5471b2d5183a3c3c8adff38d..e73e20ab6311502fa9036e24ed51e3294b17de2d 100644 (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;
 }