Skip to content

Commit

Permalink
Restore special handling of isset and empty as it was in v4. Fixes #1063
Browse files Browse the repository at this point in the history
  • Loading branch information
wisskid committed Dec 23, 2024
1 parent f47ac76 commit da49620
Show file tree
Hide file tree
Showing 5 changed files with 1,150 additions and 945 deletions.
3 changes: 1 addition & 2 deletions src/Compiler/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public function compileModifier($modifierlist, $value) {
*
* @return string
*/
public function compileVariable($variable) {
public function triggerTagNoCache($variable): void {
if (!strpos($variable, '(')) {
// not a variable variable
$var = trim($variable, '\'');
Expand All @@ -516,7 +516,6 @@ public function compileVariable($variable) {
false
)->isNocache();
}
return '$_smarty_tpl->getValue(' . $variable . ')';
}

/**
Expand Down
Loading

0 comments on commit da49620

Please sign in to comment.