mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
LStemplate : fixed template missing warning caused by Smarty3 peculiarities
This commit is contained in:
parent
ddeff8c622
commit
26e1886179
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue