[TYPO3] pi_linkTP_keepPIvars_url and missing cHash

Matthias Stuebner news at stuebner.de
Wed Mar 28 20:06:32 CEST 2007


On Wed, 28 Mar 2007 19:58:54 +0200, Elmar HInz wrote:

>> variables dependant the $cache variable automatically. Or did I miss
>> something?
> 
> Indeed. It looks like:

[...]

That is already solved and passed. I ment using $cache INSIDE
pi_linkTP_keepPIvars!

And INSIDE pi_linkTP_keepPIvars the only use of $cache I see is:

$cache = $this->pi_autoCache($overrulePIvars); 

what means that value of the variable that is handed over to that function
isn't taken care. Is that correct?


---
function
pi_linkTP_keepPIvars($str,$overrulePIvars=array(),$cache=0,$clearAnyway=0,$altPageId=0)	
{
if (is_array($this->piVars) && is_array($overrulePIvars) &&  !$clearAnyway)	
{
  $piVars = $this->piVars;
  unset($piVars['DATA']);
  $overrulePIvars =
t3lib_div::array_merge_recursive_overrule($piVars,$overrulePIvars);
	if ($this->pi_autoCacheEn)	{
		$cache = $this->pi_autoCache($overrulePIvars);
	}
  }
  $res =
$this->pi_linkTP($str,Array($this->prefixId=>$overrulePIvars),$cache,$altPageId);
	return $res;
  }

-- 
br Matthias


More information about the TYPO3-english mailing list