Skip to content

Commit

Permalink
SettingsManager::bootSettings - dont try to redefine CIVICRM_DSN
Browse files Browse the repository at this point in the history
  • Loading branch information
ufundo committed Sep 20, 2024
1 parent 78e2b3f commit c382348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Core/SettingsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public static function bootSettings($settingsPath) {
// a) ensure the env values take precedence over define('CIVICRM_DSN'...) in the settings file
// b) provide the right source value for CIVICRM_LOGGING_DSN (set from CIVICRM_DSN in the settings file template)
$composedDsn = $bootSettingsManager->getBagByDomain(NULL)->get('civicrm_db_dsn');
if ($composedDsn) {
if (!defined('CIVICRM_DSN') && $composedDsn) {
define('CIVICRM_DSN', $composedDsn);
}

Expand Down

0 comments on commit c382348

Please sign in to comment.