mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
BUGFIX If database version can't be determined, just use the database adapter class
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@105726 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8869240b5a
commit
3c6213cf49
@ -919,7 +919,7 @@ class Installer extends InstallRequirements {
|
|||||||
$dbType = $config['db']['type'];
|
$dbType = $config['db']['type'];
|
||||||
|
|
||||||
// Try to determine the database version from the helper
|
// Try to determine the database version from the helper
|
||||||
$databaseVersion = '';
|
$databaseVersion = $config['db']['type'];
|
||||||
$helper = $this->getDatabaseConfigurationHelper($dbType);
|
$helper = $this->getDatabaseConfigurationHelper($dbType);
|
||||||
if($helper && method_exists($helper, 'getDatabaseVersion')) {
|
if($helper && method_exists($helper, 'getDatabaseVersion')) {
|
||||||
$databaseVersion = urlencode($dbType . ': ' . $helper->getDatabaseVersion($config['db'][$dbType]));
|
$databaseVersion = urlencode($dbType . ': ' . $helper->getDatabaseVersion($config['db'][$dbType]));
|
||||||
|
Loading…
Reference in New Issue
Block a user