Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Installer now looks in DatabaseRegistry for adapter when check…

…ing database requirements (from r100894)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112207 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 3f34c41315f0920edf1cf1beb78b9dc7f61ee01d 1 parent 21b75a3
sminnee authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 install.php
6 install.php
View
@@ -638,7 +638,11 @@ function requireIISRewriteModule($moduleName, $testDetails) {
* @param string $databaseClass e.g. MySQLDatabase or MSSQLDatabase
*/
function getDatabaseConfigurationHelper($databaseClass) {
- $class = $databaseClass . 'ConfigurationHelper';
+ $adapters = DatabaseAdapterRegistry::adapters();
+ if(isset($adapters[$databaseClass])) {
+ $helperPath = $adapters[$databaseClass]['helperPath'];
+ $class = str_replace('.php', '', basename($helperPath));
+ }
return (class_exists($class)) ? new $class() : new MySQLDatabaseConfigurationHelper();
return new $class();
}
Please sign in to comment.
Something went wrong with that request. Please try again.