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:
sharvey 2010-02-22 07:22:16 +00:00 committed by Sam Minnee
parent 22357a1602
commit 1e935bbc14

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();
}