From 91c6916d860e01e25bd5a28469b56952955e3a8e Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 13 Aug 2020 15:29:27 +0200 Subject: [PATCH] :bug: Fix setup homepage error with PHP < 7.1.0 Was due to const visibility added in ormLinkSet class in commit b58a084d This isn't supported before PHP 7.1.0, see https://www.php.net/manual/fr/language.oop5.constants.php : > As of PHP 7.1.0 visibility modifiers are allowed for class constants. --- core/ormlinkset.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ormlinkset.class.inc.php b/core/ormlinkset.class.inc.php index afd0dec02..36ca251db 100644 --- a/core/ormlinkset.class.inc.php +++ b/core/ormlinkset.class.inc.php @@ -30,8 +30,8 @@ require_once('dbobjectiterator.php'); class ormLinkSet implements iDBObjectSetIterator, Iterator, SeekableIterator { - public const LINK_ALIAS = 'Link'; - public const REMOTE_ALIAS = 'Remote'; + const LINK_ALIAS = 'Link'; + const REMOTE_ALIAS = 'Remote'; protected $sHostClass; // subclass of DBObject protected $sAttCode; // xxxxxx_list