mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-28 18:02:07 +02:00
- bugfix under HHVM temporary cache file must only be created when caches template was updated
This commit is contained in:
@@ -96,7 +96,7 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource
|
||||
* used in included file
|
||||
*/
|
||||
$_smarty_tpl = $_template;
|
||||
if (strpos(phpversion(), 'hhvm') !== false) {
|
||||
if ($update && defined('HHVM_VERSION')) {
|
||||
return Smarty_Internal_Extension_Hhvm::includeHhvm($_template, $_template->cached->filepath);
|
||||
} else {
|
||||
return @include $_template->cached->filepath;
|
||||
|
||||
Reference in New Issue
Block a user