Skip to content

Commit

Permalink
[FrameworkBundle] Remove unused variable in TemplateLocator
Browse files Browse the repository at this point in the history
  • Loading branch information
asm89 committed Dec 7, 2011
1 parent 2cb6260 commit 8e83180
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -22,7 +22,6 @@
class TemplateLocator implements FileLocatorInterface
{
protected $locator;
protected $path;
protected $cache;

/**
Expand Down Expand Up @@ -79,7 +78,7 @@ public function locate($template, $currentPath = null, $first = true)
try {
return $this->cache[$key] = $this->locator->locate($template->getPath(), $currentPath);
} catch (\InvalidArgumentException $e) {
throw new \InvalidArgumentException(sprintf('Unable to find template "%s" in "%s".', $template, $this->path), 0, $e);
throw new \InvalidArgumentException(sprintf('Unable to find template "%s" in "%s".', $template, $currentPath), 0, $e);
}
}
}

0 comments on commit 8e83180

Please sign in to comment.