made a small tweak
authorFabien Potencier <fabien.potencier@gmail.com>
Mon, 17 Jan 2011 06:45:12 +0000 (07:45 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Mon, 17 Jan 2011 06:45:12 +0000 (07:45 +0100)
lib/Twig/Loader/Filesystem.php

index 3e08f03..612979c 100644 (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;
             }
         }