Project

General

Profile

Bug #16748 ยป patch_4575.patch

Administrator Admin, 2008-04-03 22:20

View differences:

t3lib/class.t3lib_tcemain.php (working copy)
// If table is "pages":
if (t3lib_extMgm::isLoaded('cms')) {
$list_cache = array();
if ($table=='pages') {
if ($table === 'pages' || $table === 'pages_language_overlay') {
if($table === 'pages_language_overlay') {
$pageUid = $this->getPID($table,$uid);
} else {
$pageUid = $uid;
}
// Builds list of pages on the SAME level as this page (siblings)
$res_tmp = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'A.pid AS pid, B.uid AS uid',
'pages A, pages B',
'A.uid='.intval($uid).' AND B.pid=A.pid AND B.deleted=0'
'A.uid='.intval($pageUid).' AND B.pid=A.pid AND B.deleted=0'
);
$pid_tmp = 0;
    (1-1/1)