diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-01-29 06:48:23 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-02-13 08:23:10 +0300 |
commit | 8ef47c8e4a3fb0094b4b0c19df8ed18c58cf7a6f (patch) | |
tree | 162315afc7f5a5bc0c8840eff30251a76b665b6f /core/Twig.php | |
parent | ec8dc0f150d71b752188dac3d01d29950ae6f869 (diff) |
refs #4633 open segmented visitor log with one click on a row
Diffstat (limited to 'core/Twig.php')
-rwxr-xr-x | core/Twig.php | 14 |
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() |