From 6a9193e01ad77ff3bd419a35125d9fbbe3a65b5f Mon Sep 17 00:00:00 2001 From: sminnee Date: Wed, 13 Oct 2010 03:01:31 +0000 Subject: [PATCH] ENHANCEMENT If the database type to install with doesn't allow creation of databases, allow for this case and inform the user they need to create it manually (from r99001) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112115 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.php b/install.php index 91528e1..af4da2c 100644 --- a/install.php +++ b/install.php @@ -647,7 +647,12 @@ class InstallRequirements { $this->testing($testDetails); return true; } else { - $testDetails[2] .= " (user '$databaseConfig[username]' doesn't have CREATE DATABASE permissions.)"; + if(!@$result['cannotCreate']) { + $testDetails[2] .= ". Please create the database manually."; + } else { + $testDetails[2] .= " (user '$databaseConfig[username]' doesn't have CREATE DATABASE permissions.)"; + } + $this->error($testDetails); return false; }