From 3473e48a3f4222bdf8235842eb2a2e918c2e09cb Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Fri, 21 Jun 2013 10:42:34 +0200 Subject: [PATCH] change thrown Exception if template not foud by a RuntimeException --- core/lib/Thelia/Core/Template/Smarty/SmartyParser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php index e85f53284..387d0a820 100755 --- a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php +++ b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php @@ -31,6 +31,7 @@ class SmartyParser extends Smarty implements ParserInterface { * @param \Symfony\Component\HttpFoundation\Request $request * @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher * @param bool $template + * @param string $env Environment define for the kernel application. Used for the cache directory */ public function __construct(Request $request, EventDispatcherInterface $dispatcher, $template = false, $env = "prod") { @@ -165,6 +166,6 @@ class SmartyParser extends Smarty implements ParserInterface { if (file_exists($fileName)) return $fileName; - throw new ResourceNotFoundException(sprintf("%s file not found in %s template", $file, $this->template)); + throw new \RuntimeException(sprintf("%s file not found in %s template", $file, $this->template)); } } \ No newline at end of file