use the sessions language id instead of the user's default in `I18nDatabaseObjectList`
authormutec <mysterycode@mysterycode.de>
Tue, 10 Aug 2021 10:06:27 +0000 (12:06 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 10 Aug 2021 10:18:29 +0000 (12:18 +0200)
commit48f835b92cecce69bda2bd02c1ab3fe866a04dc3
tree7c11bb67812de182cf97fcc5e8598f514fe2f6e6
parent3035ec6126786115cb384ada20228025c0115bae
use the sessions language id instead of the user's default in `I18nDatabaseObjectList`

`WCF::getUser()->languageID` doesn't return a valid language id as integer in every case. Additionally we (normally) want to use a specific language or the session's language - which might be different from the user's default in some moments.

see #4407
wcfsetup/install/files/lib/data/I18nDatabaseObjectList.class.php