From 8e83180dea56746d9bdf122166bdc1c61506e8fa Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 7 Dec 2011 22:59:17 +0100 Subject: [PATCH] [FrameworkBundle] Remove unused variable in TemplateLocator --- .../FrameworkBundle/Templating/Loader/TemplateLocator.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php index fe19b2837d2e..5316a1d691ea 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php +++ b/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); } } }