diff options
author | Fabian Becker <halfdan@xnorfz.de> | 2013-04-07 19:47:23 +0400 |
---|---|---|
committer | Fabian Becker <halfdan@xnorfz.de> | 2013-04-07 19:47:23 +0400 |
commit | 05a8bb264a19fc9f956fe41fadf7231112de3e0f (patch) | |
tree | 515383986677756e0078045f7206f6624d59e425 /core/Twig.php | |
parent | e9d6762a91fec0cc574d3c099529aa284a2689c0 (diff) |
loadJavascript is now a safe function
Diffstat (limited to 'core/Twig.php')
-rw-r--r-- | core/Twig.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Twig.php b/core/Twig.php index 016ff053de..8fb84d4ba1 100644 --- a/core/Twig.php +++ b/core/Twig.php @@ -89,7 +89,7 @@ class Piwik_Twig $jsCode .= '</script>'; } return $jsCode; - }); + }, array('is_safe' => array('html'))); $this->twig->addFunction($loadJsTranslationsFunction); $sparklineFunction = new Twig_SimpleFunction('sparkline', function($src) { |