X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FExtension%2FSystem.php;h=7e5441f68a846424df25eef35c12faef03d6700c;hb=9bc4422402c11c787d133d80da5c09c5e0a0bb56;hp=69ee2df7859c3d8ead0ad67c5567964d6f9e687b;hpb=6d699851d58b6116417dd95d5821e1cdbdfe7e42;p=civicrm-core.git diff --git a/CRM/Extension/System.php b/CRM/Extension/System.php index 69ee2df785..7e5441f68a 100644 --- a/CRM/Extension/System.php +++ b/CRM/Extension/System.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -30,7 +30,7 @@ * system. * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2014 + * @copyright CiviCRM LLC (c) 2004-2015 * $Id$ * */ @@ -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;