- 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

@@ -1,6 +1,7 @@
 ===== 3.1.30-dev ===== (xx.xx.xx)  ===== 3.1.30-dev ===== (xx.xx.xx)
14.04.2016 14.04.2016
- bugfix special variable {$smarty.capture.name} was not case sensitive on name https://github.com/smarty-php/smarty/issues/210 - 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 13.04.2016
- bugfix template inheritance status must be saved when calling sub-templates https://github.com/smarty-php/smarty/issues/215 - bugfix template inheritance status must be saved when calling sub-templates https://github.com/smarty-php/smarty/issues/215

View File

@@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/** /**
* smarty version * smarty version
*/ */
const SMARTY_VERSION = '3.1.30-dev/61'; const SMARTY_VERSION = '3.1.30-dev/62';
/** /**
* define variable scopes * define variable scopes

View File

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