mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Fix searchParents parameter, fixing GetTemplateVarsTest
This commit is contained in:
@@ -240,7 +240,7 @@ class Data
|
||||
return $this->tpl_vars[$varName];
|
||||
}
|
||||
|
||||
if ($this->parent) {
|
||||
if ($searchParents && $this->parent) {
|
||||
return $this->parent->getVariable($varName, $searchParents, $errorEnable);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user