From b26c3216c59174275ee24ec00b07089628da5273 Mon Sep 17 00:00:00 2001 From: badsuricate Date: Wed, 23 Oct 2013 23:25:41 +0200 Subject: [PATCH] Fix 404 error page --- 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 6acbf834b..e9b0fef8a 100755 --- a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php +++ b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php @@ -8,6 +8,7 @@ use \Symfony\Component\EventDispatcher\EventDispatcherInterface; use \Smarty; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Exception\HttpException; use Thelia\Core\Template\ParserInterface; use Thelia\Core\Template\Smarty\AbstractSmartyPlugin; @@ -139,7 +140,7 @@ class SmartyParser extends Smarty implements ParserInterface try { $templateFile = $this->getTemplateFilePath(); } catch (\RuntimeException $e) { - return new Response($e->getMessage(), "404"); + return new Response($this->render(\Thelia\Model\ConfigQuery::getPageNotFoundView()), "404"); } return $this->render($templateFile);