diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-05-04 10:55:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 10:55:53 +0300 |
commit | 98ef69ae7e5fdce9f0cde77515be70d6bca79b6e (patch) | |
tree | 372f08b33ba87cd5b69684198b1fcff1a85a5e50 /plugins | |
parent | 3833d95bf336d767c6d8fd9451dd6f502e4c3472 (diff) |
Fix Javascript error in JS global template causing side effects (#15901)
fix https://github.com/matomo-org/wp-matomo/issues/236
fix https://wordpress.org/support/topic/security-string-token-invalid/#topic-12754303-replies
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Morpheus/templates/_jsGlobalVariables.twig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Morpheus/templates/_jsGlobalVariables.twig b/plugins/Morpheus/templates/_jsGlobalVariables.twig index 7f127d5b2c..70f7710936 100644 --- a/plugins/Morpheus/templates/_jsGlobalVariables.twig +++ b/plugins/Morpheus/templates/_jsGlobalVariables.twig @@ -16,7 +16,7 @@ symbolDecimal: "{{ 'Intl_NumberSymbolDecimal'|translate }}" }; - piwik.relativePluginWebDirs = {{ relativePluginWebDirs|json_encode|raw }} + piwik.relativePluginWebDirs = {{ relativePluginWebDirs|json_encode|raw }}; {% if userLogin %}piwik.userLogin = "{{ userLogin|e('js')}}";{% endif %} |