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

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Feb 4 18:37:17 CET 2008


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:

+
+			return $LOCAL_LANG;
+		}
+	}

which is return with value and return without value.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-team-core mailing list