BUGFIX If SS_DATABASE_CLASS is set to a database that doesn't exist, don't break the installer but fallback to MySQL (from r99598)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112180 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sminnee 2010-10-13 04:21:40 +00:00
parent 3cb0146e36
commit 08262a9b38

View File

@ -577,6 +577,7 @@ class InstallRequirements {
*/
function getDatabaseConfigurationHelper($databaseClass) {
$class = $databaseClass . 'ConfigurationHelper';
return (class_exists($class)) ? new $class() : new MySQLDatabaseConfigurationHelper();
return new $class();
}