mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LStemplate: rollback from array class constant to class variables to restore PHP < 7
This commit is contained in:
parent
a3fc7bacfa
commit
d80c15acc1
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ class LStemplate extends LSlog_staticLoggerClass {
|
|||
* Deprecated templates files
|
||||
* @var array<string>
|
||||
*/
|
||||
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."),
|
||||
|
|
Loading…
Reference in a new issue