- broken PHP 5.3 and 5.4 compatibility

This commit is contained in:
uwetews
2016-05-16 18:17:58 +02:00
parent 0fcac38c70
commit dccfc6c2f5
3 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
 ===== 3.1.30-dev ===== (xx.xx.xx)  ===== 3.1.30-dev ===== (xx.xx.xx)
16.05.2016 16.05.2016
- optimization {foreach} compiler and processing - optimization {foreach} compiler and processing
- broken PHP 5.3 and 5.4 compatibility
15.05.2016 15.05.2016
- optimization and cleanup of resource code - optimization and cleanup of resource code

View File

@@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/** /**
* smarty version * smarty version
*/ */
const SMARTY_VERSION = '3.1.30-dev/70'; const SMARTY_VERSION = '3.1.30-dev/71';
/** /**
* define variable scopes * define variable scopes

View File

@@ -45,7 +45,8 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource
$_filepath[ 4 ] . $_filepath[ 5 ] . DS; $_filepath[ 4 ] . $_filepath[ 5 ] . DS;
} }
$cached->filepath .= $_filepath; $cached->filepath .= $_filepath;
if (!empty($basename = $source->handler->getBasename($source))) { $basename = $source->handler->getBasename($source);
if (!empty($basename)) {
$cached->filepath .= '.' . $basename; $cached->filepath .= '.' . $basename;
} }
if ($smarty->cache_locking) { if ($smarty->cache_locking) {