- bugfix sha1() calculations at extends resource and some general improvments on sha1() handling

This commit is contained in:
Uwe.Tews
2010-01-05 21:10:25 +00:00
parent a6c2f5f8d4
commit d287c6b1d9
8 changed files with 122 additions and 117 deletions
+5 -1
View File
@@ -97,7 +97,11 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data {
*/
static function get_key($template)
{
$key = sha1($template->getTemplateFilepath());
// calculate Uid if not already done
if ($template->templateUid == '') {
$template->getTemplateFilepath();
}
$key = $template->templateUid;
if (isset(self::$template_data[$key])) {
return $key;
} else {