Project

General

Profile

Bug #24726 » 17215_v2.diff

Administrator Admin, 2011-01-23 16:50

View differences:

typo3/sysext/cms/classes/class.tx_cms_backendlayout.php (revision )
protected function addColPosListLayoutItems($pageId, $items) {
$layout = $this->getSelectedBackendLayout($pageId);
t3lib_div::debug($layout);
if ($layout && $layout['__items']) {
$items = $layout['__items'];
}
t3lib_div::debug($items);
return $items;
}
......
}
foreach (t3lib_div::trimExplode(',', $tsConfig['properties']['removeItems'], 1) as $removeId) {
unset($tcaItems[$removeId]);
foreach ($tcaItems as $key => $item) {
if ($item[1] == $removeId) {
unset($tcaItems[$key]);
}
}
}
}
return $tcaItems;
}
......
'pages',
'uid=' . intval($rootline[$i]['uid'])
);
if (intval($page['backend_layout_next_level']) > 0 && $page['uid'] != $id) {
$backendLayoutUid = intval($page['backend_layout_next_level']);
$selectedBackendLayout = intval($page['backend_layout']);
$selectedBackendLayoutNextLevel = intval($page['backend_layout_next_level']);
if ($selectedBackendLayout != 0 && $page['uid'] == $id) {
if ($selectedBackendLayout > 0) {
$backendLayoutUid = $selectedBackendLayout;
}
break;
} else {
if (intval($page['backend_layout']) > 0) {
$backendLayoutUid = intval($page['backend_layout']);
} else if ($selectedBackendLayoutNextLevel == -1 && $page['uid'] != $id) {
break;
break;
} else if ($selectedBackendLayoutNextLevel > 0 && $page['uid'] != $id) {
$backendLayoutUid = $selectedBackendLayoutNextLevel;
break;
}
}
}
}
}
$backendLayout = NULL;
if ($backendLayoutUid) {
......
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/cms/classes/class.tx_cms_backendlayout.php']);
}
?>
?>
(2-2/2)