mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-06 08:26:19 +02:00
- bugfix sha1() calculations at extends resource and some general improvments on sha1() handling
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user