BUGFIX If database version can't be determined, just use the database adapter class (from r105726)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112394 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sminnee 2010-10-15 01:15:14 +00:00
parent 49bf14177f
commit 8888693600

View File

@ -919,7 +919,7 @@ class Installer extends InstallRequirements {
$dbType = $config['db']['type'];
// Try to determine the database version from the helper
$databaseVersion = '';
$databaseVersion = $config['db']['type'];
$helper = $this->getDatabaseConfigurationHelper($dbType);
if($helper && method_exists($helper, 'getDatabaseVersion')) {
$databaseVersion = urlencode($dbType . ': ' . $helper->getDatabaseVersion($config['db'][$dbType]));