From: Michał Pawłowski Date: Mon, 25 Feb 2013 01:03:01 +0000 (+0100) Subject: deprecated use, -4 files to include. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c82308ace494732a5fc1c11221860e2b732fcd52;p=web%2Fkonrad%2Ftwig.git deprecated use, -4 files to include. --- diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index a856b59..e8f9801 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -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;