Move the check_environment into the installer helper and call it from the command line installer as well as the web installer.

This commit is contained in:
Tim Almdal
2009-09-17 07:29:37 -07:00
parent a5af531fbe
commit 86681eebf7
3 changed files with 47 additions and 41 deletions

View File

@@ -30,6 +30,11 @@ if (installer::already_installed()) {
return;
}
$errors = installer::check_environment();
if ($errors) {
oops(implode("errors", "\n"));
}
$config = parse_cli_params();
if (!installer::connect($config)) {
oops("Unable to connect to the database.\n" . mysql_error() . "\n");