From 04212a64cdbe3bdf80268e0441910e2893ff8e85 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Fri, 7 Aug 2020 12:05:13 -0400 Subject: [PATCH] unneeded connect call --- CRM/Utils/System.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index cedef4ca0d..b3bdb7fe54 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -717,15 +717,12 @@ class CRM_Utils_System { * process typically done in CLI and cron scripts. See: CRM-12648 * * Q: Can we move this to the userSystem class so that it can be tuned - * per-CMS? For example, when dealing with UnitTests UF, there's no - * userFrameworkDSN. + * per-CMS? For example, when dealing with UnitTests UF, does it need to + * do this session write since the original issue was for Drupal. */ $session = CRM_Core_Session::singleton(); $session->set('civicrmInitSession', TRUE); - if ($config->userFrameworkDSN) { - $dbDrupal = DB::connect($config->userFrameworkDSN); - } return $config->userSystem->authenticate($name, $password, $loadCMSBootstrap, $realPath); } -- 2.25.1