Skip to content

Commit

Permalink
(NFC) Document format of packagesBase, resourceBase.
Browse files Browse the repository at this point in the history
Try to prevent future bounciness in changing these variables.
  • Loading branch information
totten committed Mar 16, 2020
1 parent cc8f6f1 commit 605ee23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/CRM/common/l10n.js.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 605ee23

Please sign in to comment.