forked from GNUsocial/gnu-social
typo in config variable
and pass type='pgsql' in to writeConf
This commit is contained in:
parent
1b3c4f2c52
commit
d591e24eac
@ -275,7 +275,7 @@ function pgsql_db_installer($host, $database, $username, $password, $sitename) {
|
|||||||
else {
|
else {
|
||||||
$sqlUrl = "pgsql://$username:$password@$host/$database";
|
$sqlUrl = "pgsql://$username:$password@$host/$database";
|
||||||
}
|
}
|
||||||
$res = writeConf($sitename, $sqlUrl, $fancy);
|
$res = writeConf($sitename, $sqlUrl, $fancy, 'pgsql');
|
||||||
if (!$res) {
|
if (!$res) {
|
||||||
updateStatus("Can't write config file.", true);
|
updateStatus("Can't write config file.", true);
|
||||||
showForm();
|
showForm();
|
||||||
@ -341,7 +341,7 @@ function writeConf($sitename, $sqlUrl, $fancy, $type='mysql')
|
|||||||
($fancy ? "\$config['site']['fancy'] = true;\n\n":'').
|
($fancy ? "\$config['site']['fancy'] = true;\n\n":'').
|
||||||
"\$config['db']['database'] = \"$sqlUrl\";\n\n".
|
"\$config['db']['database'] = \"$sqlUrl\";\n\n".
|
||||||
($type == 'pgsql' ? "\$config['db']['quote_identifiers'] = true;\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;
|
return $res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user