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:
authorThomas Steur <thomas.steur@gmail.com>2015-01-29 06:48:23 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-02-13 08:23:10 +0300
commit8ef47c8e4a3fb0094b4b0c19df8ed18c58cf7a6f (patch)
tree162315afc7f5a5bc0c8840eff30251a76b665b6f /core/Twig.php
parentec8dc0f150d71b752188dac3d01d29950ae6f869 (diff)
refs #4633 open segmented visitor log with one click on a row
Diffstat (limited to 'core/Twig.php')
-rwxr-xr-xcore/Twig.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/Twig.php b/core/Twig.php
index 221236002a..8eeb34ffe4 100755
--- a/core/Twig.php
+++ b/core/Twig.php
@@ -21,6 +21,7 @@ use Twig_Loader_Chain;
use Twig_Loader_Filesystem;
use Twig_SimpleFilter;
use Twig_SimpleFunction;
+use Twig_SimpleTest;
/**
* Twig class
@@ -97,6 +98,19 @@ class Twig
$this->addFunction_getJavascriptTranslations();
$this->twig->addTokenParser(new RenderTokenParser());
+
+ $this->addTest_false();
+ }
+
+ private function addTest_false()
+ {
+ $test = new Twig_SimpleTest(
+ 'false',
+ function ($value) {
+ return false === $value;
+ }
+ );
+ $this->twig->addTest($test);
}
protected function addFunction_getJavascriptTranslations()