Pass $fancy to *_db_installer.

This commit is contained in:
Tom Adams 2009-07-28 06:21:18 +01:00 committed by Craig Andrews
parent 3350770cc7
commit 605742f039

View File

@ -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...");