made a small tweak

This commit is contained in:
Fabien Potencier
2011-01-17 07:45:12 +01:00
parent f1be27301b
commit d7ca8375fd
+1 -1
View File
@@ -111,7 +111,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface
$this->validateName($name);
foreach ($this->paths as $path) {
if (file_exists($path.'/'.$name) && !is_dir($path.'/'.$name)) {
if (is_file($path.'/'.$name)) {
return $this->cache[$name] = $path.'/'.$name;
}
}