fix for paths like/begin with './'

This commit is contained in:
Mirco Babini
2013-07-05 17:03:00 +02:00
parent 3ef28e14e3
commit 08f5746c10
+1 -1
View File
@@ -61,7 +61,7 @@ class Mustache_Autoloader
return; return;
} }
$file = sprintf('%s/%s.php', $this->baseDir, str_replace('_', '/', $class)); $file = sprintf('%s/%s.php', realpath($this->baseDir), str_replace('_', '/', $class));
if (is_file($file)) { if (is_file($file)) {
require $file; require $file;
} }