Skip to content

Commit 1f267d8

Browse files
committed
Macros: fix nette/latte
1 parent 345db87 commit 1f267d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Latte/Macros.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function macroConfirm(MacroNode $node, PhpWriter $writer): string
2727

2828
$word = $words[0] ?? $this->options['confirmMessage'];
2929

30-
$var = strpos($word, '$') !== false ? "' . %escape(%raw) . '" : "' . %escape(%word) . '";
30+
$var = strpos($word, '$') !== false ? "' . %escape(%raw) . '" : "' . %escape('%word') . '";
3131

3232
return $writer->write(
3333
'echo \'data-confirm="' . $var . '" onclick="return confirm(\\\'' . $var . '\\\')"\'',

0 commit comments

Comments
 (0)