mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
3.1.19
This commit is contained in:
@@ -349,9 +349,9 @@ KEY `expire` (`expire`)
|
||||
switch ($type) {
|
||||
case 'file':
|
||||
if ($tpl instanceof Smarty) {
|
||||
return sha1($this->normalizePath($this->smarty->getTemplateDir(0) . $name, true));
|
||||
return sha1(realpath($this->normalizePath($this->smarty->getTemplateDir(0) . $name)));
|
||||
}
|
||||
return sha1($tpl->source->filepath);
|
||||
return sha1(realpath($tpl->source->filepath));
|
||||
case 'php':
|
||||
return sha1($tpl->source->filepath);
|
||||
case 'mysqltest':
|
||||
|
Reference in New Issue
Block a user