]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't write the closing ?> to the config.php
authorBrenda Wallace <shiny@cpan.org>
Fri, 30 Oct 2009 05:53:45 +0000 (18:53 +1300)
committerBrenda Wallace <shiny@cpan.org>
Fri, 30 Oct 2009 05:53:45 +0000 (18:53 +1300)
install.php

index 319c261e418514f890e87152c709bc652945accc..6bfc4c2e2192f7b94a81b3bbb4d6cc6430e38f72 100644 (file)
@@ -692,9 +692,7 @@ function writeConf($sitename, $server, $path, $fancy, $db)
             // database
             "\$config['db']['database'] = '{$db['database']}';\n\n".
             ($db['type'] == 'pgsql' ? "\$config['db']['quote_identifiers'] = true;\n\n":'').
-            "\$config['db']['type'] = '{$db['type']}';\n\n".
-
-            "?>";
+            "\$config['db']['type'] = '{$db['type']}';\n\n";
     // write configuration file out to install directory
     $res = file_put_contents(INSTALLDIR.'/config.php', $cfg);