Issue Bug Rejected

#64399$GLOBALS['TSFE']->sys_language_uid is not set

Andre Michels 01/21/15, 10:31 updated 01/23/15, 10:18

Description

I found a bug in the language module…

My ts config:

config {
    no_cache = 1
    linkVars := addToList(L)
    sys_language_uid = 2
    language = en
    locale_all = en_US
    htmlTag_langKey = en-US
}

[globalVar = GP:L = 1] 
config.sys_language_uid = 1
....
*some language options ...*

Note that my default sys_language_id is not 0.
Now i go an a page without the L parameter set. In an extbase plugin on this page i want to use this value. So i except $GLOBALS['TSFE']->sys_language_uid to be 2 right? Its 0… If i call the page with the L parameter all things were working.

My workaround is to use $GLOBALS["TSFE"]->tmpl->setup['config.']['sys_language_uid'] but i wonder if i’m wrong or typo3. Is it not allowed to set an default sys_language other than 0?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.