deprecated use, -4 files to include.
authorMichał Pawłowski <m.pawlowski@si2.pl>
Mon, 25 Feb 2013 01:03:01 +0000 (02:03 +0100)
committerMichał Pawłowski <m.pawlowski@si2.pl>
Mon, 25 Feb 2013 01:03:01 +0000 (02:03 +0100)
lib/Twig/Extension/Core.php

index a856b59..e8f9801 100644 (file)
@@ -171,8 +171,8 @@ class Twig_Extension_Core extends Twig_Extension
         );
 
         if (function_exists('mb_get_info')) {
-            $filters['upper'] = new Twig_Filter_Function('twig_upper_filter', array('needs_environment' => true));
-            $filters['lower'] = new Twig_Filter_Function('twig_lower_filter', array('needs_environment' => true));
+            $filters[] = new Twig_SimpleFilter('upper', 'twig_upper_filter', array('needs_environment' => true));
+            $filters[] = new Twig_SimpleFilter('lower', 'twig_lower_filter', array('needs_environment' => true));
         }
 
         return $filters;