mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #4516 from marc1706/ticket/14867
[ticket/14867] Revert back to twig 1.26.* and update dependencies * marc1706/ticket/14867: [ticket/14867] Revert back to twig 1.26.* and update dependencies
This commit is contained in:
@@ -22,11 +22,6 @@ class lexer extends \Twig_Lexer
|
||||
|
||||
public function tokenize($code, $filename = null)
|
||||
{
|
||||
if ($code instanceof \Twig_Source)
|
||||
{
|
||||
$filename = $code->getName();
|
||||
$code = $code->getCode();
|
||||
}
|
||||
// Our phpBB tags
|
||||
// Commented out tokens are handled separately from the main replace
|
||||
$phpbb_tags = array(
|
||||
@@ -130,7 +125,7 @@ class lexer extends \Twig_Lexer
|
||||
// Appends any filters
|
||||
$code = preg_replace('#{([a-zA-Z0-9_\.]+)(\|[^}]+?)?}#', '{{ $1$2 }}', $code);
|
||||
|
||||
return parent::tokenize(new \Twig_Source($code, $filename));
|
||||
return parent::tokenize($code, $filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user