Feature #18913 » 8626_4.3.patch

Administrator Admin, 2009-08-08 17:02

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
5138 5138
	 */
5139 5139
	function rootLineValue($key,$field,$slideBack=0,$altRootLine='')	{
5140 5140
		$rootLine = is_array($altRootLine) ? $altRootLine : $GLOBALS['TSFE']->tmpl->rootLine;
5141
		if (!$slideBack)	{
5142
			return $rootLine[$key][$field];
5141
		if (!$slideBack) {
5142
			$val = $rootLine[$key][$field];
5143 5143
		} else {
5144
			for ($a=$key;$a>=0;$a--)	{
5144
			for ($a = $key; $a >= 0; $a--) {
5145 5145
				$val = $rootLine[$a][$field];
5146
				if ($val)	{return $val;}
5146
				if ($val) {
5147
					$GLOBALS['TSFE']->register['UID_FROM_LAST_PAGESLIDE_FOR_FIELD_' . $field] = $rootLine[$a]['uid'];
5148
					$GLOBALS['TSFE']->register['LEVEL_FROM_LAST_PAGESLIDE_FOR_FIELD_' . $field] = $a;
5149
					break;
5150
				}
5147 5151
			}
5148 5152
		}
5153
		return $val;
5149 5154
	}
5150 5155

  
5151 5156
	/**
(2-2/3)