Bug #16748 ยป patch_4575.patch
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;
|