From: Herb Date: Mon, 1 Jul 2019 02:25:52 +0000 (-0400) Subject: Use global since Civi\Core\Paths isn't loaded yet X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b90c44520db186a2a51d29fdca99560470c1d5e2;p=civicrm-core.git Use global since Civi\Core\Paths isn't loaded yet --- diff --git a/CRM/Core/Config/Runtime.php b/CRM/Core/Config/Runtime.php index 3b979627f9..61758bf365 100644 --- a/CRM/Core/Config/Runtime.php +++ b/CRM/Core/Config/Runtime.php @@ -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; }