From dee7a2b130630087ca42b73bd3bf1601e90f00ff Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Wed, 20 Mar 2013 12:33:20 +0530 Subject: [PATCH] CRM-12130 adding comment to code for future improvement as suggested by totten in PR --- CRM/Extension/Mapper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Extension/Mapper.php b/CRM/Extension/Mapper.php index 528105f281..ba5d38bcb7 100755 --- a/CRM/Extension/Mapper.php +++ b/CRM/Extension/Mapper.php @@ -235,6 +235,8 @@ class CRM_Extension_Mapper { */ public function keyToUrl($key) { if ($key == 'civicrm') { + // CRM-12130 Workaround: If the domain's config_backend is NULL at the start of the request, + // then the Mapper is wrongly constructed with an empty value for $this->civicrmUrl. if (empty($this->civicrmUrl)) { $config = CRM_Core_Config::singleton(); return rtrim($config->resourceBase, '/'); -- 2.25.1