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

Steffen Kamper info at sk-typo3.de
Tue Sep 16 09:47:16 CEST 2008


Hi,

Dmitry Dulepov [typo3] schrieb:
> Hi!
> 
> Steffen Kamper wrote:
>> There are several places where GLOBALS[LANG] is initialised in core
>> * ajax.php
>> * template.php
>> * class.modulemenu.php
>> * class.shortcutmenu.php
>>
>> I moved initialisation to init.php direct after BE_USER authentication 
>> and removed the other initialisations.
>>
>> Now we have GLOBALS[LANG] available all the time (in BE)
>> (because it isn't i declared the patch as bugfix)
> 
> I just found initialization of $LANG in classes/class.modulemenu.php and 
> classes/class.shortcutmenu.php. What are those?
> 

i wondered too, but removed with this patch. I did a global search for 
LANG initialisation.

vg Steffen


More information about the TYPO3-team-core mailing list