mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
Removed unnecessary twig_constant_filter function
This commit is contained in:
committed by
Fabien Potencier
parent
d70af74d1f
commit
abdee6a8cd
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user