Use global since Civi\Core\Paths isn't loaded yet
authorHerb <herb@3speedhub.com>
Mon, 1 Jul 2019 02:25:52 +0000 (22:25 -0400)
committerTim Otten <totten@civicrm.org>
Tue, 16 Jul 2019 01:58:12 +0000 (18:58 -0700)
CRM/Core/Config/Runtime.php

index 3b979627f930b2ef8a082984bcf2420e139c09dd..61758bf365d377bafb956e81b020a8270367e05a 100644 (file)
@@ -106,7 +106,7 @@ class CRM_Core_Config_Runtime extends CRM_Core_Config_MagicMerge {
       CRM_Utils_File::restrictAccess($this->templateCompileDir);
     }
 
-    $civicrm_private = Civi::paths()->getPath('[civicrm.private]');
+    $civicrm_private = $GLOBALS['civicrm_paths']['civicrm.private'];
     if (!empty($civicrm_private)) {
       $this->configAndLogDir = rtrim($civicrm_private, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'ConfigAndLog' . DIRECTORY_SEPARATOR;
     }