From 5d0eb4e61e5d41ad2a2b5a9f6fda9fbd0930aeef Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Wed, 9 Oct 2013 10:34:35 +0200 Subject: [PATCH] do not display some information about template file --- core/lib/Thelia/Core/Template/Smarty/SmartyParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php index b6c1ed1b7..6acbf834b 100755 --- a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php +++ b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php @@ -212,14 +212,14 @@ class SmartyParser extends Smarty implements ParserInterface $templateDir = realpath(THELIA_TEMPLATE_DIR . rtrim($this->template, "/") . "/"); if (strpos($pathFileName, $templateDir) !== 0) { - throw new ResourceNotFoundException(sprintf("'%s' view does not exists", htmlspecialchars($file))); + throw new ResourceNotFoundException(sprintf("this view does not exists")); } if (!file_exists($fileName)) { $fileName .= ".html"; if (!file_exists($fileName)) { - throw new ResourceNotFoundException(sprintf("'%s' file not found in %s template", htmlspecialchars($file), $this->template)); + throw new ResourceNotFoundException(sprintf("file not found in %s template", $this->template)); } }