From: Fabien Potencier Date: Sat, 18 Dec 2010 10:21:46 +0000 (+0100) Subject: removed the 'items' filter, which has been deprecated a long time ago X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=14341443dd48ec4b02fcc32cd935a921de8d537c;p=web%2Fkonrad%2Ftwig.git removed the 'items' filter, which has been deprecated a long time ago --- diff --git a/CHANGELOG b/CHANGELOG index c636ab0..5f1970f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,10 @@ * 1.0.0-BETA1 -... +Backward incompatibilities: + + * the items filter, which has been deprecated for quite a long time now, has been removed + +Changes: * 0.9.10 (2010-12-16) diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 6bb7192..96b5192 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -70,7 +70,6 @@ class Twig_Extension_Core extends Twig_Extension // iteration and runtime 'default' => new Twig_Filter_Function('twig_default_filter'), 'keys' => new Twig_Filter_Function('twig_get_array_keys_filter'), - 'items' => new Twig_Filter_Function('twig_get_array_items_filter'), // escaping 'escape' => new Twig_Filter_Function('twig_escape_filter', array('needs_environment' => true, 'is_safe_callback' => 'twig_escape_filter_is_safe')), @@ -437,13 +436,6 @@ function twig_ensure_traversable($seq) } } -// only for backward compatibility -function twig_get_array_items_filter($array) -{ - // noop - return $array; -} - function twig_test_sameas($value, $test) { return $value === $test;