From 6429b0b10395d4d3008719c0474f09ff526591c6 Mon Sep 17 00:00:00 2001 From: sharvey Date: Thu, 11 Feb 2010 09:58:46 +0000 Subject: [PATCH] MINOR Renamed keys to database configuration results git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@98795 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.php b/install.php index b5c9126..38680b5 100644 --- a/install.php +++ b/install.php @@ -216,7 +216,7 @@ class InstallRequirements { var $errors, $warnings, $tests; /** - * Just check that the database configuration is okay + * Just check that the database configuration is all good. */ function checkdatabase($databaseConfig) { if($this->requireDatabaseFunctions( @@ -629,7 +629,7 @@ class InstallRequirements { $this->testing($testDetails); $helper = $this->getDatabaseConfigurationHelper($databaseConfig['type']); $result = $helper->requireDatabaseConnection($databaseConfig); - if($result['okay']) { + if($result['success']) { return true; } else { $testDetails[2] .= ": " . $result['error']; @@ -642,7 +642,7 @@ class InstallRequirements { $this->testing($testDetails); $helper = $this->getDatabaseConfigurationHelper($databaseConfig['type']); $result = $helper->requireDatabaseServer($databaseConfig); - if($result['okay']) { + if($result['success']) { return true; } else { $testDetails[2] .= ": " . $result['error']; @@ -655,8 +655,8 @@ class InstallRequirements { $this->testing($testDetails); $helper = $this->getDatabaseConfigurationHelper($databaseConfig['type']); $result = $helper->requireDatabaseOrCreatePermissions($databaseConfig); - if($result['okay']) { - if($result['existsAlready']) $testDetails[3] = "Database $databaseConfig[database] exists"; + if($result['success']) { + if($result['alreadyExists']) $testDetails[3] = "Database $databaseConfig[database] exists"; else $testDetails[3] = "Able to create a new database"; $this->testing($testDetails); return true;