diff --git a/change_log.txt b/change_log.txt index 3a8fefc1..0f4ee7c8 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,7 +1,8 @@  ===== 3.1.30-dev ===== (xx.xx.xx) 16.05.2016 - optimization {foreach} compiler and processing - + - broken PHP 5.3 and 5.4 compatibility + 15.05.2016 - optimization and cleanup of resource code diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 3df382c0..58687918 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.30-dev/70'; + const SMARTY_VERSION = '3.1.30-dev/71'; /** * define variable scopes diff --git a/libs/sysplugins/smarty_internal_cacheresource_file.php b/libs/sysplugins/smarty_internal_cacheresource_file.php index cfab6614..0e80e04b 100644 --- a/libs/sysplugins/smarty_internal_cacheresource_file.php +++ b/libs/sysplugins/smarty_internal_cacheresource_file.php @@ -45,7 +45,8 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource $_filepath[ 4 ] . $_filepath[ 5 ] . DS; } $cached->filepath .= $_filepath; - if (!empty($basename = $source->handler->getBasename($source))) { + $basename = $source->handler->getBasename($source); + if (!empty($basename)) { $cached->filepath .= '.' . $basename; } if ($smarty->cache_locking) {