Skip to content
Browse files

deprecated use, -4 files to include.

  • Loading branch information...
1 parent 214385d commit c82308ace494732a5fc1c11221860e2b732fcd52 Michał Pawłowski committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Twig/Extension/Core.php
View
4 lib/Twig/Extension/Core.php
@@ -171,8 +171,8 @@ public function getFilters()
);
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;

0 comments on commit c82308a

Please sign in to comment.
Something went wrong with that request. Please try again.