Bug #18312 ยป 0007677.patch

Administrator Admin, 2008-02-26 15:45

View differences:

t3lib/class.t3lib_tstemplate.php (Arbeitskopie)
791 791
		if ($this->tt_track)	$GLOBALS['TT']->pull();
792 792

  
793 793
			// Searching for possible unsubstituted constants left (only for information)
794
		if (strstr($all,'{$'))	{
795
			$findConst = explode('{$',$all);
796
			$theConstList=Array();
797
			next($findConst);
798
			while(list(,$constVal)=each($findConst))	{
794
		if (strstr($all, '{$')) {
795
			$theConstList = array();
796
			$findConst = explode('{$', $all);
797
			array_shift($findConst);
798
			foreach ($findConst as $constVal) {
799 799
				$constLen=t3lib_div::intInRange(strcspn($constVal,'}'),0,50);
800 800
				$theConstList[]='{$'.substr($constVal,0,$constLen+1);
801 801
			}
    (1-1/1)