[TYPO3-core] Introducing a BE rootline cache

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Tue Feb 27 17:30:04 CET 2007


Oliver Hader schrieb:
> Hi Martin,
> 
> Martin Kutschker wrote:
> 
>>+		if (is_array($GLOBALS['T3_VAR']['BEgetRootLine_cache'][$uid][$clause][$workspaceOL?1:0]))	{
>>+			return $GLOBALS['T3_VAR']['BEgetRootLine_cache'][$uid][$clause][$workspaceOL?1:0];
>>+		}
> 
> 
> Generally this looks good. But could you please adapt the following:
> $cached =& $GLOBALS['T3_VAR']['BEgetRootLine_cache'][$uid][...][...];
> if (is_array($cached)) {
> 	return $cached;
> }

Oh come on... Any opinions on adapting this alias/shorthand style?

Masi


More information about the TYPO3-team-core mailing list