Skip to content

Commit

Permalink
Fixed FileSystemLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrehm committed Jan 27, 2017
1 parent d82ac64 commit 5492ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Twig/Loader/FilesystemLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5492ffd

Please sign in to comment.