[WebBundle] fixed renderDir to not call renderFile on not files
This commit is contained in:
parent
9f8ef8a575
commit
6d691052ac
@ -34,6 +34,11 @@ class Mustache
|
||||
{
|
||||
foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($dir), \RecursiveIteratorIterator::LEAVES_ONLY) as $file)
|
||||
{
|
||||
if ($file->isDot())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
static::renderFile((string) $file, $parameters);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user