From c82308ace494732a5fc1c11221860e2b732fcd52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Paw=C5=82owski?= Date: Mon, 25 Feb 2013 02:03:01 +0100 Subject: [PATCH] deprecated use, -4 files to include. --- lib/Twig/Extension/Core.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.2.5