Skip to content

Commit

Permalink
{_translate} & {capture} passes full content-type to FilterInfo (BC b…
Browse files Browse the repository at this point in the history
…reak)
  • Loading branch information
dg committed Feb 22, 2021
1 parent db1f437 commit 6db24cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Latte/Macros/CoreMacros.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,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.line;',
$node->context[0],
implode($node->context),
$value
);

Expand Down Expand Up @@ -409,7 +409,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
);
Expand Down

0 comments on commit 6db24cc

Please sign in to comment.