Update Smarty to 3.1.3

This commit is contained in:
Rob Lensen
2018-01-18 00:23:24 +01:00
parent 6a3f8f3e76
commit db684f6151
190 changed files with 7430 additions and 5215 deletions
@@ -28,9 +28,8 @@ class Smarty_Internal_Resource_String extends Smarty_Resource
*/
public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null)
{
$source->uid = $source->filepath = sha1($source->name);
$source->timestamp = 0;
$source->exists = true;
$source->uid = $source->filepath = sha1($source->name . $source->smarty->_joined_template_dir);
$source->timestamp = $source->exists = true;
}
/**
@@ -94,4 +93,15 @@ class Smarty_Internal_Resource_String extends Smarty_Resource
{
return '';
}
/*
* Disable timestamp checks for string resource.
*
* @return bool
*/
public function checkTimestamps()
{
return false;
}
}