Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-07-01 08:20:04 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-01 08:20:04 +0400
commitb74d05c003fffb648aec9eb44ca9b1baf129b18c (patch)
tree4e9fe5caec10830e8d0c54d3dd1115853f1391b7 /core/Twig.php
parent03641e10a12f5b6cdd5f41853238202e25656598 (diff)
parentca1325bbec9ef76facfaab8980a0ac97861e3e54 (diff)
Merge branch '2.x-twig'
Diffstat (limited to 'core/Twig.php')
-rw-r--r--core/Twig.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/Twig.php b/core/Twig.php
index a0347e910d..ab6822fd33 100644
--- a/core/Twig.php
+++ b/core/Twig.php
@@ -41,7 +41,8 @@ class Piwik_Twig
$this->twig = new Twig_Environment($chainLoader,
array(
'debug' => true, // to use {{ dump(var) }} in twig templates
- //'cache' => PIWIK_DOCUMENT_ROOT . '/tmp/templates_c',
+ 'strict_variables' => true, // throw an exception if variables are invalid
+ 'cache' => PIWIK_DOCUMENT_ROOT . '/tmp/templates_c',
)
);
$this->twig->addExtension(new Twig_Extension_Debug());
@@ -53,11 +54,6 @@ class Piwik_Twig
$this->addFilter_money();
$this->addFilter_truncate();
$this->twig->addFilter( new Twig_SimpleFilter('implode', 'implode'));
- $this->twig->addFilter( new Twig_SimpleFilter('count', 'count'));
- /*
- $this->load_filter('output', 'cachebuster');
- $this->load_filter('output', 'trimwhitespace');*/
-
$this->addFunction_includeAssets();
$this->addFunction_linkTo();