mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
BUGFIX If SS_DATABASE_CLASS is set to a database that doesn't exist, don't break the installer but fallback to MySQL
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@99598 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
22357a1602
commit
1e935bbc14
@ -577,6 +577,7 @@ class InstallRequirements {
|
|||||||
*/
|
*/
|
||||||
function getDatabaseConfigurationHelper($databaseClass) {
|
function getDatabaseConfigurationHelper($databaseClass) {
|
||||||
$class = $databaseClass . 'ConfigurationHelper';
|
$class = $databaseClass . 'ConfigurationHelper';
|
||||||
|
return (class_exists($class)) ? new $class() : new MySQLDatabaseConfigurationHelper();
|
||||||
return new $class();
|
return new $class();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user