From a62557e817d9d08ca32b85223de6c0247d1edcdb Mon Sep 17 00:00:00 2001 From: uwetews Date: Sun, 15 May 2016 11:51:46 +0200 Subject: [PATCH] - broken PHP 5.3 and 5.4 compatibility --- libs/sysplugins/smarty_template_compiled.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_template_compiled.php b/libs/sysplugins/smarty_template_compiled.php index 04235ab8..a8a5aaff 100644 --- a/libs/sysplugins/smarty_template_compiled.php +++ b/libs/sysplugins/smarty_template_compiled.php @@ -64,7 +64,8 @@ class Smarty_Template_Compiled extends Smarty_Template_Resource_Base $this->filepath .= (int) $smarty->merge_compiled_includes + (int) $smarty->escape_html * 2; } $this->filepath .= '.' . $source->type; - if (!empty($basename = $source->handler->getBasename($source))) { + $basename = $source->handler->getBasename($source); + if (!empty($basename)) { $this->filepath .= '.' . $basename; } if ($_template->caching) {