diff --git a/CHANGELOG b/CHANGELOG index eda73110c..a4239da76 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ * 1.16.1 (2014-XX-XX) + * sped up the slice filter * fixed for mb function overload mb_substr acting different * fixed the attribute() function when passing a variable for the arguments diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index b8953fc47..959b59053 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -692,7 +692,6 @@ function twig_array_merge($arr1, $arr2) function twig_slice(Twig_Environment $env, $item, $start, $length = null, $preserveKeys = false) { if ($item instanceof Traversable) { - if ($item instanceof IteratorAggregate) { $item = $item->getIterator(); }