[TYPO3-dev] Setting config.sys_language_uid from PHP script

Martin Koch Andersen martin at 925.dk
Mon Mar 26 20:56:19 CEST 2007


Martin Koch Andersen skrev:
> Martin Kutschker skrev:
>> And what does not work? I have changed the language locally and 
>> successfully within a plugin.
> 
> $this->config['config']['sys_language_uid'] in settingLanguage() in 
> tslib evalutes to NULL. Even though I set this from my script.
> 
> I think my problems has to do with either order of calls or caching of 
> the config array.

Further to this. On line 1777 in tslib_fe the config array is being 
emptied as part of the getConfigArray method. Thus giving it a value 
before this method is called is useless.

Any advice on how to get around this?

-- 
Martin - http://925.dk
"Shoot for the moon, even if you miss, you'll land among the stars."




More information about the TYPO3-dev mailing list