[BUGFIX] Simplify item states in Menu Generation 65/60865/2
authorBenni Mack <benni@typo3.org>
Mon, 3 Jun 2019 11:12:02 +0000 (13:12 +0200)
committerBenni Mack <benni@typo3.org>
Thu, 27 Jun 2019 11:56:04 +0000 (13:56 +0200)
commitdddf0243c4d9a99bdc425de24d02ed7baef0a00a
treeb77d2bc66662729dcda78e64f9d4c649c1afd01a
parent5a6b061023d4e20b86b215e65945661d965733b5
[BUGFIX] Simplify item states in Menu Generation

The same if() loop is used for checking menu generation item states
(ACT/IFSUB etc), this can be very much simplified by using
a loop over the available item states which are now defined
as a constant.

Resolves: #88477
Releases: master
Change-Id: If8b7ddbcb2d367954d5757d2957bea6b34f8ed60
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60865
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog <look@susi.dev>
Tested-by: Daniel Gorges <daniel.gorges@b13.de>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Susanne Moog <look@susi.dev>
Reviewed-by: Daniel Gorges <daniel.gorges@b13.de>
Reviewed-by: Benni Mack <benni@typo3.org>
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php