Skip to content

Commit

Permalink
Merge pull request #166 from peterrehm/fs-loader
Browse files Browse the repository at this point in the history
Fixed FileSystemLoader
  • Loading branch information
lsmith77 authored Jan 27, 2017
2 parents d82ac64 + 5492ffd commit be137ed
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 be137ed

Please sign in to comment.