LStemplate : fixed template missing warning caused by Smarty3 peculiarities

This commit is contained in:
Benjamin Renard 2013-06-25 11:34:42 +02:00
parent ddeff8c622
commit 26e1886179

View file

@ -195,6 +195,11 @@ class LStemplate {
public static function getTemplateSource($template) {
$tpl_path=self :: getTemplatePath($template);
if (!is_readable($tpl_path)) {
if (self :: $_smarty_version > 2) {
// No error return with Smarty3 and highter because it's call
// template name in lower first systematically
return '';
}
$tpl_path=self :: getTemplatePath('empty.tpl');
LSerror::addErrorCode('LStemplate_01',$template);
}