mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-17 22:28:46 +01:00
Merge pull request #6302 from 3D-I/ticket/16885
[ticket/16885] Add type casting filters to Twig
This commit is contained in:
commit
01a22e7223
@ -79,6 +79,8 @@ class extension extends \Twig\Extension\AbstractExtension
|
||||
new \Twig\TwigFilter('subset', array($this, 'loop_subset'), array('needs_environment' => true)),
|
||||
// @deprecated 3.2.0 Uses twig's JS escape method instead of addslashes
|
||||
new \Twig\TwigFilter('addslashes', 'addslashes'),
|
||||
new \Twig\TwigFilter('int', 'intval'),
|
||||
new \Twig\TwigFilter('float', 'floatval'),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user