Skip to content
Snippets Groups Projects
Commit e131831e authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Handle disabled default language in PageContentErrorHandler

The SiteInterface provides the "getDefaultLanguage()"
method, which will always return the first configured
language - usually L=0. However, this language might
be disabled, which means, it should not be visible
in frontend context.

The PageContentErrorHandler therefore now tries
to fetch the first enabled language, in case the
requested language id does not exist in the current
site and the sites' default language is disabled.

Resolves: #99530
Releases: main, 11.5
Change-Id: Ib02cbd8f01a4fc1a69be46ad2015e8863553fae0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77538


Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent 36177e36
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment