From a9c1f55beda64072afd6acdb212f570c5f8144a7 Mon Sep 17 00:00:00 2001
From: sminnee <sminnee@467b73ca-7a2a-4603-9d3b-597d59a354a9>
Date: Fri, 15 Oct 2010 01:16:43 +0000
Subject: [PATCH] BUGFIX: Fixed CLI installation. (from r108032)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112402 467b73ca-7a2a-4603-9d3b-597d59a354a9
---
 install.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/install.php b/install.php
index a4e16a5..a47f5c7 100644
--- a/install.php
+++ b/install.php
@@ -103,8 +103,9 @@ if(isset($_REQUEST['db'])) {
 		$databaseConfig['type'] = $type;
 	}
 } else {
+	$type = $_REQUEST['db']['type'] = defined('SS_DATABASE_CLASS') ? SS_DATABASE_CLASS : 'MySQLDatabase';
 	$_REQUEST['db'][$type] = $databaseConfig = array(
-		"type" => defined('SS_DATABASE_CLASS') ? SS_DATABASE_CLASS : "MySQLDatabase",
+		"type" => $type,
 		"server" => defined('SS_DATABASE_SERVER') ? SS_DATABASE_SERVER : "localhost",
 		"username" => defined('SS_DATABASE_USERNAME') ? SS_DATABASE_USERNAME : "root",
 		"password" => defined('SS_DATABASE_PASSWORD') ? SS_DATABASE_PASSWORD : "",