[TYPO3-dev] Manipulating languages

Mathias Schreiber [wmdb] mathias.schreiber at wmdb.de
Wed Jan 25 15:01:48 CET 2006


tapio wrote:
> Anyway I found the info
> 
> the language of the user is
> $GLOBALS['BE_USER']
> 
> print_r prints:
> 
> 
> ux_t3lib_tsfeBeUserAuth Object
> (
> 
> [uc] => Array
> 
> ....
>     [lang] => fi
> 
> the desired value is
> 
> ['uc']['lang'] of 'ux_t3lib_tsfeBeUserAuth'
> 
> I don't know the whole syntax
> 
> $BEUserLang = $GLOBALS['BE_USER'] what_here ['uc']['lang'];

not tested due to time reasons:
$GLOBALS['BE_USER']->user['uc']['lang'];

-- 
if ($GLOBALS['TSFE']->fe_user->user['ahnung'] == 0) {
	$this->fresseHalten = 1;
}




More information about the TYPO3-dev mailing list