mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 01:12:29 +02:00
Update Smarty to 3.1.3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user