From d80c15acc16b4be559422afa2ea5b250a7c7aa67 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 3 Jan 2023 15:32:03 +0100 Subject: [PATCH] LStemplate: rollback from array class constant to class variables to restore PHP < 7 --- src/includes/class/class.LStemplate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."),