unneeded connect call
authordemeritcowboy <demeritcowboy@hotmail.com>
Fri, 7 Aug 2020 16:05:13 +0000 (12:05 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Fri, 7 Aug 2020 16:05:13 +0000 (12:05 -0400)
CRM/Utils/System.php

index cedef4ca0d458ca83af785ebf097b81633d5dc58..b3bdb7fe545801ea63a8b080f1f6373301d84bd3 100644 (file)
@@ -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);
   }