ENHANCEMENT "Database Configuration" section in installer shows database version and database type (without the "Database" suffix) for reference (from r111874)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112430 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sminnee 2010-10-15 01:22:04 +00:00
parent 3df7734b83
commit 5dc52e9569

View File

@ -232,9 +232,9 @@ class InstallRequirements {
array(
"Database Configuration",
"Database support",
"Database support in PHP")
"Database support in PHP"
)
) {
)) {
if($this->requireDatabaseServer(
$databaseConfig,
array(
@ -257,7 +257,8 @@ class InstallRequirements {
array(
"Database Configuration",
"Database server meets required version",
""
'',
$this->getDatabaseTypeNice($databaseConfig['type']) . ' ' . $this->getDatabaseConfigurationHelper($databaseConfig['type'])->getDatabaseVersion($databaseConfig)
)
)) {
$this->requireDatabaseOrCreatePermissions(
@ -698,6 +699,10 @@ class InstallRequirements {
}
}
function getDatabaseTypeNice($databaseClass) {
return substr($databaseClass, 0, -8);
}
/**
* Get an instance of a helper class for the specific database.
* @param string $databaseClass e.g. MySQLDatabase or MSSQLDatabase