[TYPO3-dev] $GLOBALS['LANG']->sL() vs. $GLOBALS['TSFE']->sL()

Dmitry Dulepov typo3 at accio.lv
Sat Aug 12 17:42:15 CEST 2006


Hi!

Elmar Hinz wrote:
> while I was able in TYPO3 3.7 to use $GOBALS['LANG']->sL in the Frontend of
> TYPO3 3.7.0 I get an error message in 4.0.0 and 4.0.1:
> 
> "Call to a member function sL() on a non-object in ..."

It means that someone else created $LANG in the global scope. This is 
not generally the case and never was guarantied.

Many modules create such variables themselves. Just search for `$LANG =` 
or something and do the same.

-- 
Dmitry Dulepov
ACCIO Ltd, Latvia
http://accio.lv/en/

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)




More information about the TYPO3-dev mailing list