mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 03:16:34 +00:00
fixed filesystem loader should not view directory as a valid template (closes #116)
This commit is contained in:
@@ -107,7 +107,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface
|
||||
}
|
||||
|
||||
foreach ($this->paths as $path) {
|
||||
if (!file_exists($path.DIRECTORY_SEPARATOR.$name)) {
|
||||
if (!file_exists($path.DIRECTORY_SEPARATOR.$name) || is_dir($path.DIRECTORY_SEPARATOR.$name)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user