diff --git a/src/includes/class/class.LStemplate.php b/src/includes/class/class.LStemplate.php index 68c7e0e5..3ff88eb3 100644 --- a/src/includes/class/class.LStemplate.php +++ b/src/includes/class/class.LStemplate.php @@ -123,7 +123,7 @@ class LStemplate extends LSlog_staticLoggerClass { * Deprecated templates files * @var array */ - private const deprecated_template_files = array ( + private static $deprecated_template_files = array ( 'accueil.tpl', 'blank.tpl', 'empty.tpl', 'top.tpl', 'bottom.tpl', ); @@ -334,7 +334,7 @@ class LStemplate extends LSlog_staticLoggerClass { * @return string The path of the Smarty template file **/ public static function getTemplatePath($template, $with_nocache=false) { - if (in_array($template, self :: deprecated_template_files)) + if (in_array($template, self :: $deprecated_template_files)) self :: log_fatal( getFData( _("LStemplate : Request template '%{tpl}' is now deprecated. Please refer to upgrade documentation to adapt your templates."),