From 5492ffde2c8393974bfe7f286517b98e63c2a64b Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Fri, 27 Jan 2017 12:14:30 +0100 Subject: [PATCH] Fixed FileSystemLoader --- Twig/Loader/FilesystemLoader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;