Bug #14665
closedConditional branch not working with sys_language_uid
0%
Description
If switching language with HTTP_HOST (Domain-switching) without &L Parameter:
###################
#Language Detection #
###################
[globalString = HTTP_HOST = www.mydomain.com]
config.sys_language_uid = 1
config.language = en
config.locale_all = en_EN
[global]
and conditional branch with this:
[globalVar = TSFE:sys_language_uid = 1]
mycode
[end]
is not working, because $TSFE->sys_language is not yet updated.
I found out that $TSFE->config['config']['sys_language'] is always updated with the correct language setting.
So I tried to this condition:
[globalVar = TSFE:config|config|sys_language_uid = 1]
mycode
[end]
I noticed that the first call is not working but the following calls are working. So I was forced to triple check all language with conditional branches like this:
1. english setting without &L-Parameter
2. german with &L-Parameter
3. english setting with &L-Parameter
in this order and for all language setting in my page. I couldn't found a solution yet. Altough I was digging really deep into the codes. :)
(issue imported from #M973)