Commit 7f5a1bb1 authored by wmortada's avatar wmortada

Fix formatting

parent db922230
......@@ -315,60 +315,60 @@ elseif ($installType == 'wordpress') {
// Load civicrm database config
if (isset($_POST['mysql'])) {
$databaseConfig = $_POST['mysql'];
$databaseConfig = $_POST['mysql'];
}
else {
$databaseConfig = array(
"server" => "localhost",
"username" => "civicrm",
"password" => "",
"database" => "civicrm",
);
$databaseConfig = [
"server" => "localhost",
"username" => "civicrm",
"password" => "",
"database" => "civicrm",
];
}
if ($installType == 'wordpress') {
// 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,
);
}
// Load WP database config
if (isset($_POST['mysql'])) {
$databaseConfig = $_POST['mysql'];
}
else {
$databaseConfig = [
"server" => DB_HOST,
"username" => DB_USER,
"password" => DB_PASSWORD,
"database" => DB_NAME,
];
}
}
if ($installType == 'drupal') {
// Load drupal database config
if (isset($_POST['drupal'])) {
$drupalConfig = $_POST['drupal'];
}
else {
$drupalConfig = array(
"server" => $databases['default']['default']['host'],
"username" => $databases['default']['default']['username'],
"password" => $databases['default']['default']['password'],
"database" => $databases['default']['default']['database'],
);
}
// Load drupal database config
if (isset($_POST['drupal'])) {
$drupalConfig = $_POST['drupal'];
}
else {
$drupalConfig = [
"server" => $databases['default']['default']['host'],
"username" => $databases['default']['default']['username'],
"password" => $databases['default']['default']['password'],
"database" => $databases['default']['default']['database'],
];
}
}
if ($installType == 'backdrop') {
// Load backdrop database config
if (isset($_POST['backdrop'])) {
$backdropConfig = $_POST['backdrop'];
}
else {
$backdropConfig = array(
"server" => "localhost",
"username" => "backdrop",
"password" => "",
"database" => "backdrop",
);
}
// Load backdrop database config
if (isset($_POST['backdrop'])) {
$backdropConfig = $_POST['backdrop'];
}
else {
$backdropConfig = [
"server" => "localhost",
"username" => "backdrop",
"password" => "",
"database" => "backdrop",
];
}
}
// Check requirements
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment