Project

General

Profile

Feature #18913 » 8626.patch

Administrator Admin, 2008-06-06 15:03

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
function rootLineValue($key,$field,$slideBack=0,$altRootLine='') {
$rootLine = is_array($altRootLine) ? $altRootLine : $GLOBALS['TSFE']->tmpl->rootLine;
if (!$slideBack) {
return $rootLine[$key][$field];
$val = $rootLine[$key][$field];
} else {
for ($a=$key;$a>=0;$a--) {
$val = $rootLine[$a][$field];
if ($val) {return $val;}
if ($val) {
$GLOBALS['TSFE']->register['UID_FROM_LAST_PAGESLIDE_FOR_FIELD_' . $field] = $rootLine[$a]['uid'];
$GLOBALS['TSFE']->register['LEVEL_FROM_LAST_PAGESLIDE_FOR_FIELD_' . $field] = $a;
break;
}
}
}
return $val;
}
/**
(1-1/3)