Skip to content
Browse files

[FrameworkBundle] Remove unused variable in TemplateLocator

  • Loading branch information...
1 parent 2cb6260 commit 8e83180dea56746d9bdf122166bdc1c61506e8fa @asm89 committed Dec 7, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php
View
3 src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php
@@ -22,7 +22,6 @@
class TemplateLocator implements FileLocatorInterface
{
protected $locator;
- protected $path;
protected $cache;
/**
@@ -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.
Something went wrong with that request. Please try again.