From abdee6a8cd34adb7289402fda771ae569672c4f5 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 21 Oct 2010 20:17:56 +0200 Subject: [PATCH] Removed unnecessary twig_constant_filter function --- lib/Twig/Extension/Core.php | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 66342e5..c00c328 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -55,7 +55,7 @@ class Twig_Extension_Core extends Twig_Extension 'upper' => new Twig_Filter_Function('strtoupper'), 'lower' => new Twig_Filter_Function('strtolower'), 'striptags' => new Twig_Filter_Function('strip_tags'), - 'constant' => new Twig_Filter_Function('twig_constant_filter'), + 'constant' => new Twig_Filter_Function('constant'), // array helpers 'join' => new Twig_Filter_Function('twig_join_filter'), @@ -201,11 +201,6 @@ function twig_cycle_filter($values, $i) return $values[$i % count($values)]; } -function twig_constant_filter($constant) -{ - return constant($constant); -} - function twig_strtr($pattern, $replacements) { return str_replace(array_keys($replacements), array_values($replacements), $pattern); -- 1.7.2.5