Skip to content

Commit

Permalink
{_translate} & {capture} passes full content-type to FilterInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 24, 2021
1 parent 7dd0ca5 commit 1369070
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 @@ -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
);

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

0 comments on commit 1369070

Please sign in to comment.