Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.

Commit

Permalink
3.1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
uwetews committed May 4, 2015
1 parent c80fdd8 commit 4ac575c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PHPUnit_Smarty.php
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 4ac575c

Please sign in to comment.