don't write the closing ?> to the config.php

This commit is contained in:
Brenda Wallace 2009-10-30 18:53:45 +13:00
parent de7c12baef
commit 54c64a0cf1
1 changed files with 1 additions and 3 deletions

View 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);