mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user