forked from GNUsocial/gnu-social
Pass $fancy to *_db_installer.
This commit is contained in:
parent
3350770cc7
commit
605742f039
@ -219,9 +219,9 @@ function handlePost()
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch($dbtype) {
|
switch($dbtype) {
|
||||||
case 'mysql': mysql_db_installer($host, $database, $username, $password, $sitename);
|
case 'mysql': mysql_db_installer($host, $database, $username, $password, $sitename, $fancy);
|
||||||
break;
|
break;
|
||||||
case 'pgsql': pgsql_db_installer($host, $database, $username, $password, $sitename);
|
case 'pgsql': pgsql_db_installer($host, $database, $username, $password, $sitename, $fancy);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
@ -232,7 +232,7 @@ function handlePost()
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
function pgsql_db_installer($host, $database, $username, $password, $sitename) {
|
function pgsql_db_installer($host, $database, $username, $password, $sitename, $fancy) {
|
||||||
$connstring = "dbname=$database host=$host user=$username";
|
$connstring = "dbname=$database host=$host user=$username";
|
||||||
|
|
||||||
//No password would mean trust authentication used.
|
//No password would mean trust authentication used.
|
||||||
@ -298,7 +298,7 @@ function pgsql_db_installer($host, $database, $username, $password, $sitename) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function mysql_db_installer($host, $database, $username, $password, $sitename) {
|
function mysql_db_installer($host, $database, $username, $password, $sitename, $fancy) {
|
||||||
updateStatus("Starting installation...");
|
updateStatus("Starting installation...");
|
||||||
updateStatus("Checking database...");
|
updateStatus("Checking database...");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user