From 605ee23e6345365f3ca25da44568553e4b15d2b1 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 15 Mar 2020 17:53:57 -0700 Subject: [PATCH] (NFC) Document format of packagesBase, resourceBase. Try to prevent future bounciness in changing these variables. --- templates/CRM/common/l10n.js.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/CRM/common/l10n.js.tpl b/templates/CRM/common/l10n.js.tpl index 48aea3e954..fa49678644 100644 --- a/templates/CRM/common/l10n.js.tpl +++ b/templates/CRM/common/l10n.js.tpl @@ -12,7 +12,9 @@ (function($) {ldelim} // Config settings CRM.config.userFramework = {$config->userFramework|@json_encode}; + {* resourceBase: The URL of `civicrm-core` assets. Ends with "/". *} CRM.config.resourceBase = {$config->userFrameworkResourceURL|@json_encode}; + {* packageseBase: The URL of `civicrm-packages` assets. Ends with "/". *} CRM.config.packagesBase = {capture assign=packagesBase}{crmResURL expr='[civicrm.packages]/'}{/capture}{$packagesBase|@json_encode}; CRM.config.lcMessages = {$config->lcMessages|@json_encode}; CRM.config.locale = {$locale|@json_encode}; -- 2.25.1