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-09-30 10:11:35 +0400
committermattab <matthieu.aubry@gmail.com>2013-09-30 16:05:47 +0400
commit494d826ab4874ea85d55ce7e47b432abe35a4a5d (patch)
tree82d65784b0a509539022d559a45754bcb2f1f208 /core/Twig.php
parente2de21361ae1a858e3b339fdb3b040b0429dac4f (diff)
Refs #4133
Diffstat (limited to 'core/Twig.php')
-rw-r--r--core/Twig.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Twig.php b/core/Twig.php
index 59fabb8a2e..0520d242d7 100644
--- a/core/Twig.php
+++ b/core/Twig.php
@@ -46,11 +46,14 @@ class Twig
$chainLoader = new Twig_Loader_Chain(array($loader));
// Create new Twig Environment and set cache dir
+ $templatesCompiledPath = PIWIK_USER_PATH . '/tmp/templates_c';
+ $templatesCompiledPath = SettingsPiwik::rewriteTmpPathWithHostname($templatesCompiledPath);
+
$this->twig = new Twig_Environment($chainLoader,
array(
'debug' => true, // to use {{ dump(var) }} in twig templates
'strict_variables' => true, // throw an exception if variables are invalid
- 'cache' => PIWIK_USER_PATH . '/tmp/templates_c',
+ 'cache' => $templatesCompiledPath,
)
);
$this->twig->addExtension(new Twig_Extension_Debug());