From d7ca8375fdb290a1cbe6427e4acb2624255a9c5a Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 17 Jan 2011 07:45:12 +0100 Subject: [PATCH] made a small tweak --- lib/Twig/Loader/Filesystem.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; } } -- 1.7.2.5