mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:11:47 +02:00
Merge pull request #6302 from 3D-I/ticket/16885
[ticket/16885] Add type casting filters to Twig
This commit is contained in:
@@ -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'),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user