X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FExtension%2FSystem.php;h=7e5441f68a846424df25eef35c12faef03d6700c;hb=0c07fff8870aebc78542d5519ba7c4e4689c53cf;hp=1e09e10f02b3f4aebabb557d5909b621fa13cc74;hpb=82fd7aef5afb57464121d60e237c626cf5752333;p=civicrm-core.git diff --git a/CRM/Extension/System.php b/CRM/Extension/System.php index 1e09e10f02..7e5441f68a 100644 --- a/CRM/Extension/System.php +++ b/CRM/Extension/System.php @@ -52,6 +52,13 @@ class CRM_Extension_System { */ private $_repoUrl = NULL; + /** + * @var array + * Construction parameters. These are primarily retained so + * that they can influence the cache name. + */ + protected $parameters; + /** * @param bool $fresh * TRUE to force creation of a new system. @@ -102,6 +109,9 @@ class CRM_Extension_System { if (!array_key_exists('cmsRootPath', $parameters)) { $parameters['cmsRootPath'] = $config->userSystem->cmsRootPath(); } + if (!array_key_exists('domain_id', $parameters)) { + $parameters['domain_id'] = CRM_Core_Config::domainID(); + } ksort($parameters); // guaranteed ordering - useful for md5(serialize($parameters)) $this->parameters = $parameters;