From 86681eebf7ee2bf28b12fd12ee6a5fe70bc36d0a Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 17 Sep 2009 07:29:37 -0700 Subject: Move the check_environment into the installer helper and call it from the command line installer as well as the web installer. --- installer/cli.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'installer/cli.php') diff --git a/installer/cli.php b/installer/cli.php index 50845ea4..182c3d26 100644 --- a/installer/cli.php +++ b/installer/cli.php @@ -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"); -- cgit v1.2.3