From 26e1886179169798483981af212be1eb8c7dad73 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 25 Jun 2013 11:34:42 +0200 Subject: [PATCH] LStemplate : fixed template missing warning caused by Smarty3 peculiarities --- public_html/includes/class/class.LStemplate.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public_html/includes/class/class.LStemplate.php b/public_html/includes/class/class.LStemplate.php index 984577c0..2bedd3c4 100644 --- a/public_html/includes/class/class.LStemplate.php +++ b/public_html/includes/class/class.LStemplate.php @@ -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); }