From 313a57a020068eab7cf2570136258a03e3521f1f Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 15 Jun 2017 00:06:03 -0700 Subject: [PATCH] CRM-19303 - Paths - Allow sysadmin to explicitly `[civicrm.*]` variables --- Civi/Core/Paths.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Civi/Core/Paths.php b/Civi/Core/Paths.php index 07b16f10a3..718b4bc294 100644 --- a/Civi/Core/Paths.php +++ b/Civi/Core/Paths.php @@ -78,6 +78,9 @@ class Paths { public function getVariable($name, $attr) { if (!isset($this->variables[$name])) { $this->variables[$name] = call_user_func($this->variableFactory[$name]); + if (isset($GLOBALS['civicrm_paths'][$name])) { + $this->variables[$name] = array_merge($this->variables[$name], $GLOBALS['civicrm_paths'][$name]); + } } if (!isset($this->variables[$name][$attr])) { throw new \RuntimeException("Cannot resolve path using \"$name.$attr\""); -- 2.25.1