Project

General

Profile

Bug #18660 » mp_menus_crosssite-v2.diff

Administrator Admin, 2008-04-24 14:25

View differences:

t3lib/class.t3lib_page.php (working copy)
$mp_row = $this->getPage($mount_info['mount_pid']); // Using "getPage" is OK since we need the check for enableFields AND for type 2 of mount pids we DO require a doktype < 200!
if (count($mp_row)) {
$row = $mp_row;
$row['_ORIG_UID'] = $origUid;
$row['_MP_PARAM'] = $mount_info['MPvar'];
} else unset($row); // If the mount point could not be fetched with respect to enableFields, unset the row so it does not become a part of the menu!
}
typo3/sysext/cms/tslib/class.tslib_menu.php (working copy)
$overrideArray['uid'] = $this->mconf['overrideId']?$this->mconf['overrideId']:$this->menuArr[$key]['overrideId'];
$overrideArray['alias'] = '';
$MP_params = ''; // clear MP parameters since ID was changed.
} else if (isset($this->menuArr[$key]['_ORIG_UID'])) {
$overrideArray = array('uid' => $this->menuArr[$key]['_ORIG_UID']);
} else {
$overrideArray='';
}
typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
$target = $forceTarget;
}
$LD = $GLOBALS['TSFE']->tmpl->linkData($page,$target,$conf['no_cache'],'','',$addQueryParams,$theTypeP);
if (strlen($tCR_domain)) {
// We will add domain only if URL does not have it already.
if (strlen($tCR_domain) && (!count($MPvarAcc) && strpos($addQueryParams, '&MP=') === false)) {
// We will add domain only if URL does not have it already and not a mount point -- they always link to the original page
$urlParts = parse_url($LD['totalURL']);
if ($urlParts['host'] == '') {
$LD['totalURL'] = 'http://' . $tCR_domain . ($LD['totalURL']{0} == '/' ? '' : '/') . $LD['totalURL'];
(2-2/5)