[TYPO3-core] RFC: #2731: Improved caching of locallang

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Mon Feb 4 18:41:05 CET 2008


Dmitry Dulepov [typo3] schrieb:
> Hi!
> 
> Martin Kutschker wrote:
>> Dmitry Dulepov [typo3] schrieb:
>>> - readLPHPfile uses both empty return and return with value
>>
>> No.
> 
> Yes:
> 
> +    function readLLPHPfile($fileRef, $langKey, $charset='')    {
> +
> +        if (is_object($GLOBALS['LANG']))    {
> +            $csConvObj = &$GLOBALS['LANG']->csConvObj;
> +        } elseif (is_object($GLOBALS['TSFE']))    {
> +            $csConvObj = &$GLOBALS['TSFE']->csConvObj;
> +        } else return;
> 
> and later:

Ah. I have changed the code in the 2nd patch to create an instance of 
t3lib_cs if none is found. So you can use this function in any script you like.

Masi


More information about the TYPO3-team-core mailing list