X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FLogging%2FReportDetail.php;h=fdbd92216a895882e7e64861f067e6119585fb40;hb=d386a2ca2a30d9ca9ed1fdde1e0d7ae4fb5a75b3;hp=d5822b183d515cae25111a9e4606447c52bacda1;hpb=93c4c2a90f9d22ec94aa8fbc6ac389604da34151;p=civicrm-core.git diff --git a/CRM/Logging/ReportDetail.php b/CRM/Logging/ReportDetail.php index d5822b183d..fdbd92216a 100644 --- a/CRM/Logging/ReportDetail.php +++ b/CRM/Logging/ReportDetail.php @@ -257,7 +257,8 @@ class CRM_Logging_ReportDetail extends CRM_Report_Form { * Store the dsn for the logging database in $this->db. */ protected function storeDB() { - $dsn = defined('CIVICRM_LOGGING_DSN') ? DB::parseDSN(CIVICRM_LOGGING_DSN) : DB::parseDSN(CIVICRM_DSN); + $dsn = defined('CIVICRM_LOGGING_DSN') ? CRM_Utils_SQL::autoSwitchDSN(CIVICRM_LOGGING_DSN) : CRM_Utils_SQL::autoSwitchDSN(CIVICRM_DSN); + $dsn = DB::parseDSN($dsn); $this->db = $dsn['database']; }