diff --git a/phpBB/phpbb/template/twig/lexer.php b/phpBB/phpbb/template/twig/lexer.php index 6615a46067..10346ac299 100644 --- a/phpBB/phpbb/template/twig/lexer.php +++ b/phpBB/phpbb/template/twig/lexer.php @@ -72,6 +72,8 @@ class lexer extends \Twig_Lexer 'endspaceless', 'verbatim', 'endverbatim', + 'apply', + 'endapply', ); // Fix tokens that may have inline variables (e.g. - {% spaceless %} + {% apply spaceless %} {L_SITE_HOME} - {% endspaceless %} + {% endapply %} - {% spaceless %} + {% apply spaceless %} {L_INDEX} - {% endspaceless %} + {% endapply %}