Type on template not found exception

This commit is contained in:
Franck Allimant
2014-01-17 19:06:24 +01:00
parent c41c957529
commit f5cc6869cd

View File

@@ -218,7 +218,7 @@ class SmartyParser extends Smarty implements ParserInterface
public function render($realTemplateName, array $parameters = array()) public function render($realTemplateName, array $parameters = array())
{ {
if (false === $this->templateExists($realTemplateName)) { 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); return $this->internalRenderer('file', $realTemplateName, $parameters);