[Typo3-dev] Accessing the currently active default language with PHP

Ingmar Schlecht ingmars at REMOVETHISweb.de
Thu Aug 14 17:53:22 CEST 2003


Sacha Vorbeck wrote:
> Hi,
> 
> I know that I can find out the available alternative languages with
> $query = "SELECT `uid`,`title` FROM `sys_language` WHERE `hidden` != 1";
> (btw. how can I use enableFields here instead of hidden != 1?)
> 
> But how can I read out config.language with PHP?

echo $GLOBALS["TSFE"]->tmpl->setup["config."]["language"];

- Ingmar





More information about the TYPO3-dev mailing list