From 4ac575c96f1bcd03bd1bca4266f0f9498701b443 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Mon, 4 May 2015 04:01:13 +0200 Subject: [PATCH] 3.1.19 --- PHPUnit_Smarty.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PHPUnit_Smarty.php b/PHPUnit_Smarty.php index 01649e9..b494141 100644 --- a/PHPUnit_Smarty.php +++ b/PHPUnit_Smarty.php @@ -349,9 +349,9 @@ public function buildUid($tpl, $value = null, $name = null, $type = null) 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':