- bugfix the default template handler must calculate the source uid https://github.com/smarty-php/smarty/issues/205

This commit is contained in:
uwetews
2016-04-14 21:24:26 +02:00
parent 9839de9cc4
commit d3b7a344aa
3 changed files with 3 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ class Smarty_Internal_Method_RegisterDefaultTemplateHandler
$source->timestamp = filemtime($_return);
}
$source->filepath = $_return;
$source->uid = sha1($source->filepath);
} elseif ($_return === true) {
$source->content = $_content;
$source->timestamp = $_timestamp;