Fix CiviCRM databaseConfig for WordPress. Default to existing WP database, but allow override. Thsi will ensure re-check requirements does not overwrite the settings
}
if ($installType == 'wordpress') {
- //WP Database Data
+ // Load WP database config
+ if (isset($_POST['mysql'])) {
+ $databaseConfig = $_POST['mysql'];
+ }
+ else {
$databaseConfig = array(
"server" => DB_HOST,
"username" => DB_USER,
"password" => DB_PASSWORD,
"database" => DB_NAME,
);
+ }
}
if ($installType == 'drupal') {