[TYPO3-dev] PI language labels

Dmitry Dulepov dmitry at typo3.org
Mon Aug 30 10:37:35 CEST 2010


Hi!

J. Lingott wrote:
> Well, the extension is a XCLASS extension for another extension (t.b.e.
> tt_news) using the processSingleViewLink hook. The loading by
> pi_loadLL() is done in the constructor of the class and the fetching
> with pi_getLL() occurs in a sub method of the hook method.

The constructor is not a right place. Labels should be fetched inside the
main() method because only that methods gets the configuration, which is
necessary for language loading.

> Am always using the class object to get the language data, not the
> parent object from tt_news. What else besides using my own object could
> I do to prevent the routine you described?

I am not sure what you mean.

-- 
Dmitry Dulepov
TYPO3 core&security team member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/




More information about the TYPO3-dev mailing list