[WebBundle] fixed renderDir to not call renderFile on not files

This commit is contained in:
Bulat (Hacker) Shakirzyanov 2010-04-07 13:07:15 -04:00 committed by Fabien Potencier
parent 9f8ef8a575
commit 6d691052ac

View File

@ -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);
}
}