From 13690706d28b4a1e70f073922cf0474f53b4d02e Mon Sep 17 00:00:00 2001 From: David Grudl Date: Thu, 18 Feb 2021 15:51:00 +0100 Subject: [PATCH] {_translate} & {capture} passes full content-type to FilterInfo --- src/Latte/Macros/CoreMacros.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Latte/Macros/CoreMacros.php b/src/Latte/Macros/CoreMacros.php index d8db5d1b1..083e32e72 100644 --- a/src/Latte/Macros/CoreMacros.php +++ b/src/Latte/Macros/CoreMacros.php @@ -321,7 +321,7 @@ public function macroTranslate(MacroNode $node, PhpWriter $writer): string return $writer->write( '$ʟ_fi = new LR\FilterInfo(%var); echo %modifyContent($this->filters->filterContent("translate", $ʟ_fi, %raw))', - $node->context[0], + implode($node->context), $value ); @@ -412,7 +412,7 @@ public function macroCaptureEnd(MacroNode $node, PhpWriter $writer): string : 'ob_get_clean()'; return $writer->write( '$ʟ_fi = new LR\FilterInfo(%var); %raw = %modifyContent(%raw);', - $node->context[0], + implode($node->context), $node->data->variable, $body );