diff options
| author | Storyxx <57802448+Storyxx@users.noreply.github.com> | 2022-09-18 17:15:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-18 17:15:56 +0200 |
| commit | db80246b58f53477478e720149309e91c1593003 (patch) | |
| tree | 16365f2d83dec2bcf2908b0415e475420cd42470 /libs | |
| parent | d683641f90bad0a9a812595c923c8f580d20bb7a (diff) | |
| download | smarty-db80246b58f53477478e720149309e91c1593003.tar.gz smarty-db80246b58f53477478e720149309e91c1593003.tar.bz2 smarty-db80246b58f53477478e720149309e91c1593003.zip | |
fix compilation for caching templates (#801)
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/sysplugins/smarty_internal_template.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index bae22a7d..bf627ce7 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -292,7 +292,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase $smarty = &$this->smarty; $_templateId = $smarty->_getTemplateId($template, $cache_id, $compile_id, $caching, $tpl); // recursive call ? - if (isset($tpl->templateId) ? $tpl->templateId : $tpl->_getTemplateId() !== $_templateId) { + if ((isset($tpl->templateId) ? $tpl->templateId : $tpl->_getTemplateId()) !== $_templateId) { // already in template cache? if (isset(self::$tplObjCache[ $_templateId ])) { // copy data from cached object @@ -358,7 +358,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase } if ($tpl->caching === 9999) { if (!isset($tpl->compiled)) { - $this->loadCompiled(true); + $tpl->loadCompiled(true); } if ($tpl->compiled->has_nocache_code) { $this->cached->hashes[ $tpl->compiled->nocache_hash ] = true; |
