From f27341c6c8df786ac3ff6811e88403760177638f Mon Sep 17 00:00:00 2001 From: Kevin Cristiano Date: Tue, 13 Sep 2016 11:27:12 -0400 Subject: [PATCH] CRM-19729 Fix CiviCRM databaseConfig for WordPress. Default to existing WP database, but allow override. Thsi will ensure re-check requirements does not overwrite the settings --- install/index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install/index.php b/install/index.php index 276c1c4ca1..ad024a88a8 100644 --- a/install/index.php +++ b/install/index.php @@ -118,13 +118,18 @@ else { } 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') { -- 2.25.1