Feature #18913 » 8626.patch

Administrator Admin, 2008-06-06 15:03

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
4976 4976
	function rootLineValue($key,$field,$slideBack=0,$altRootLine='')	{
4977 4977
		$rootLine = is_array($altRootLine) ? $altRootLine : $GLOBALS['TSFE']->tmpl->rootLine;
4978 4978
		if (!$slideBack)	{
4979
			return $rootLine[$key][$field];
4979
			$val = $rootLine[$key][$field];
4980 4980
		} else {
4981 4981
			for ($a=$key;$a>=0;$a--)	{
4982 4982
				$val = $rootLine[$a][$field];
4983
				if ($val)	{return $val;}
4983
				if ($val)	{
4984
					$GLOBALS['TSFE']->register['UID_FROM_LAST_PAGESLIDE_FOR_FIELD_' . $field] = $rootLine[$a]['uid'];
4985
					$GLOBALS['TSFE']->register['LEVEL_FROM_LAST_PAGESLIDE_FOR_FIELD_' . $field] = $a;
4986
					break;
4987
				}
4984 4988
			}
4985 4989
		}
4990
		return $val;
4986 4991
	}
4987 4992

  
4988 4993
	/**
(1-1/3)