From 76a6b8f3a4084debd383f7a04037ba15a0586ee4 Mon Sep 17 00:00:00 2001 From: sminnee Date: Thu, 16 Oct 2008 23:17:06 +0000 Subject: [PATCH] Fix notice level errors in command-line installation used in tests git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@64465 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.php b/install.php index 551c0d5..196ccd9 100644 --- a/install.php +++ b/install.php @@ -6,7 +6,7 @@ */ ini_set('max_execution_time', 300); - +error_reporting(E_ALL ^ E_NOTICE); session_start(); // Include environment files @@ -24,7 +24,7 @@ foreach($envFiles as $envFile) { if(isset($_REQUEST['mysql'])) { $databaseConfig = $_REQUEST['mysql']; } else { - $databaseConfig = array( + $_REQUEST['mysql'] = $databaseConfig = array( "type" => "MySQLDatabase", "server" => defined('SS_DATABASE_SERVER') ? SS_DATABASE_SERVER : "localhost", "username" => defined('SS_DATABASE_USERNAME') ? SS_DATABASE_USERNAME : "root", @@ -36,7 +36,7 @@ if(isset($_REQUEST['mysql'])) { if(isset($_REQUEST['admin'])) { $adminConfig = $_REQUEST['admin']; } else { - $adminConfig = array( + $_REQUEST['admin'] = $adminConfig = array( 'username' => 'admin', 'password' => 'password', 'firstname' => '',