From f5cc6869cd81ee7f290145ead801fb91d0d040f4 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Fri, 17 Jan 2014 19:06:24 +0100 Subject: [PATCH] Type on template not found exception --- core/lib/Thelia/Core/Template/Smarty/SmartyParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php index f652aaa01..251ae9b9c 100755 --- a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php +++ b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php @@ -218,7 +218,7 @@ class SmartyParser extends Smarty implements ParserInterface public function render($realTemplateName, array $parameters = array()) { if (false === $this->templateExists($realTemplateName)) { - throw new ResourceNotFoundException(Translator::getInstance()->trans("Template file %file cannot be found.", array('%file', $realTemplateName))); + throw new ResourceNotFoundException(Translator::getInstance()->trans("Template file %file cannot be found.", array('%file' => $realTemplateName))); } return $this->internalRenderer('file', $realTemplateName, $parameters);