diff options
author | Brenda Wallace <shiny@cpan.org> | 2009-09-14 19:08:05 +1200 |
---|---|---|
committer | Brenda Wallace <shiny@cpan.org> | 2009-09-14 19:08:05 +1200 |
commit | dbc08ef0a09e481e0884a38ee704f4d193edef6a (patch) | |
tree | 0b5ff4a1e33d109fe69a3b694c2bcd0be77635e6 /install.php | |
parent | 93605dce99832868c3fdbb8af42db507a8005e97 (diff) |
most of code style errors gone
Conflicts:
install.php
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/install.php b/install.php index 6e7e833a3..dea03fc5e 100644 --- a/install.php +++ b/install.php @@ -516,8 +516,7 @@ STR; } global $dbModules; - $db = call_user_func($dbModules[$dbtype]['installer'], - $host, $database, $username, $password); + $db = call_user_func($dbModules[$dbtype]['installer'], $host, $database, $username, $password); if (!$db) { // database connection failed, do not move on to create config file. @@ -540,12 +539,10 @@ STR; updateStatus("StatusNet has been installed at $link"); updateStatus("You can visit your <a href='$link'>new StatusNet site</a>."); -?> - -<?php } -function pgsql_db_installer($host, $database, $username, $password) { +function Pgsql_Db_installer($host, $database, $username, $password) +{ $connstring = "dbname=$database host=$host user=$username"; //No password would mean trust authentication used. @@ -605,7 +602,8 @@ function pgsql_db_installer($host, $database, $username, $password) { return $db; } -function mysql_db_installer($host, $database, $username, $password) { +function Mysql_Db_installer($host, $database, $username, $password) +{ updateStatus("Starting installation..."); updateStatus("Checking database..."); @@ -678,9 +676,10 @@ function writeConf($sitename, $server, $path, $fancy, $db) /** * Install schema into the database * - * @param filename $filename location of database schema file - * @param conn $conn connection to database - * @param type $type type of database, currently mysql or pgsql + * @param string $filename location of database schema file + * @param dbconn $conn connection to database + * @param string $type type of database, currently mysql or pgsql + * * @return boolean - indicating success or failure */ function runDbScript($filename, $conn, $type = 'mysql') |