mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
merged branch minchal/master (PR #1013)
This PR was merged into the master branch.
Commits
-------
c82308a deprecated use, -4 files to include.
Discussion
----------
Depraceted use of Twig_Filter_Function in Core Extension
Simple fix, that reduces included files count by 4 (in default configuration).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user