[TYPO3-core] RFC: #9346: Preinitialise GLOBALS[LANG] in init.php

Franz Holzinger franz at fholzinger.com
Thu Sep 18 09:49:24 CEST 2008


Dmitry Dulepov [typo3] a écrit :
> Hi!
> 
> Franz Holzinger wrote:
>> Move the lines
>> +require_once(PATH_typo3.'sysext/lang/lang.php');
>> +$GLOBALS['LANG'] = t3lib_div::makeInstance('language');
>> +$GLOBALS['LANG']->init($BE_USER->uc['lang']);
>>
>> to the beginning of the file init.php.
> 
> And how to get current language?

Also the $BE_USER initialization shall be done earlier.

- Franz


More information about the TYPO3-team-core mailing list