mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
made a small tweak
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user