diff --git a/change_log.txt b/change_log.txt index 34cca0cc..fd957ec8 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@  ===== 3.1.30-dev ===== (xx.xx.xx) 14.04.2016 - bugfix special variable {$smarty.capture.name} was not case sensitive on name https://github.com/smarty-php/smarty/issues/210 + - bugfix the default template handler must calculate the source uid https://github.com/smarty-php/smarty/issues/205 13.04.2016 - bugfix template inheritance status must be saved when calling sub-templates https://github.com/smarty-php/smarty/issues/215 diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 690545ce..031c1c10 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.30-dev/61'; + const SMARTY_VERSION = '3.1.30-dev/62'; /** * define variable scopes diff --git a/libs/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php b/libs/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php index 262d7e8c..0e47b56b 100644 --- a/libs/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php +++ b/libs/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php @@ -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;