From: Fabien Potencier Date: Mon, 17 Jan 2011 06:45:12 +0000 (+0100) Subject: made a small tweak X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=d7ca8375fdb290a1cbe6427e4acb2624255a9c5a;p=konrad%2Ftwig.git made a small tweak --- diff --git a/lib/Twig/Loader/Filesystem.php b/lib/Twig/Loader/Filesystem.php index 3e08f03..612979c 100644 --- a/lib/Twig/Loader/Filesystem.php +++ b/lib/Twig/Loader/Filesystem.php @@ -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; } }