Skip to content
Browse files

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
  • Loading branch information...
1 parent 3cb0146 commit 08262a9b381b10c2a13e42e5e416107be88b786e sminnee committed Oct 13, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 install.php
View
1 install.php
@@ -577,6 +577,7 @@ function requireIISRewriteModule($moduleName, $testDetails) {
*/
function getDatabaseConfigurationHelper($databaseClass) {
$class = $databaseClass . 'ConfigurationHelper';
+ return (class_exists($class)) ? new $class() : new MySQLDatabaseConfigurationHelper();
return new $class();
}

0 comments on commit 08262a9

Please sign in to comment.
Something went wrong with that request. Please try again.