diff --git a/Twig/Loader/FilesystemLoader.php b/Twig/Loader/FilesystemLoader.php index 93fae48..86f9acf 100644 --- a/Twig/Loader/FilesystemLoader.php +++ b/Twig/Loader/FilesystemLoader.php @@ -73,8 +73,8 @@ protected function findTemplate($template, $throw = true) $previous = null; try { - $template = $this->parser->parse($template); - $file = $this->locator->locate($template); + $templateReference = $this->parser->parse($template); + $file = $this->locator->locate($templateReference); } catch (\Exception $e) { $previous = $e;