- broken PHP 5.3 and 5.4 compatibility

This commit is contained in:
uwetews
2016-05-15 11:51:46 +02:00
parent 6ef0d0eaa0
commit a62557e817

View File

@@ -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 .= (int) $smarty->merge_compiled_includes + (int) $smarty->escape_html * 2;
} }
$this->filepath .= '.' . $source->type; $this->filepath .= '.' . $source->type;
if (!empty($basename = $source->handler->getBasename($source))) { $basename = $source->handler->getBasename($source);
if (!empty($basename)) {
$this->filepath .= '.' . $basename; $this->filepath .= '.' . $basename;
} }
if ($_template->caching) { if ($_template->caching) {