Project

General

Profile

Bug #18665 » bug_8194_mp-sub-pages-v2.diff

Administrator Admin, 2008-08-11 00:19

View differences:

t3lib/class.t3lib_page.php (working copy)
if ($GLOBALS['TYPO3_CONF_VARS']['FE']['enable_mount_pids']) {
// Set first Page uid:
if (!$firstPageUid) {
$firstPageUid = $pageRec['uid'];
if (isset($this->cache_getMountPointInfo[$pageId])) {
return $this->cache_getMountPointInfo[$pageId];
}
if (isset($this->cache_getMountPointInfo[$pageId][$firstPageUid])) {
return $this->cache_getMountPointInfo[$pageId][$firstPageUid];
}
// Get pageRec if not supplied:
if (!is_array($pageRec)) {
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid,pid,doktype,mount_pid,mount_pid_ol,t3ver_state', 'pages', 'uid='.intval($pageId).' AND pages.deleted=0 AND pages.doktype!=255');
......
$this->versionOL('pages',$pageRec); // Only look for version overlay if page record is not supplied; This assumes that the input record is overlaid with preview version, if any!
}
// Set first Page uid:
if (!$firstPageUid) {
$firstPageUid = $pageRec['uid'];
}
// Look for mount pid value plus other required circumstances:
$mount_pid = intval($pageRec['mount_pid']);
......
}
}
$this->cache_getMountPointInfo[$pageId][$firstPageUid] = $result;
$this->cache_getMountPointInfo[$pageId] = $result;
return $result;
}
(2-2/2)