Bug #16147 ยป 3491.diff
typo3/sysext/cms/tslib/class.tslib_fe.php (working copy) | ||
---|---|---|
}
|
||
} else {
|
||
$message = 'You logged out from Workspace preview mode. Click this link to <a href="%1$s">go back to the website</a>';
|
||
}
|
||
}
|
||
die(sprintf($message,
|
||
htmlspecialchars(ereg_replace('\&?ADMCMD_prev=[[:alnum:]]+','',t3lib_div::_GET('returnUrl')))
|
||
));
|
||
... | ... | |
$this->setSimulReplacementChar();
|
||
}
|
||
if ($this->config['config']['typolinkEnableLinksAccrosDomains']) {
|
||
$this->config['config']['typolinkCheckRootline'] = true;
|
||
}
|
||
// Set default values for removeDefaultJS, inlineStyle2TempFile and minifyJS so CSS and JS are externalized/minified if compatversion is higher than 4.0
|
||
if (t3lib_div::compat_version('4.0')) {
|
||
if (!isset($this->config['config']['removeDefaultJS'])) {
|
typo3/sysext/cms/tslib/class.tslib_content.php (working copy) | ||
---|---|---|
// Add "&MP" var:
|
||
$addQueryParams.= '&MP='.rawurlencode(implode(',',$MPvarAcc));
|
||
}
|
||
elseif ($GLOBALS['TSFE']->config['config']['typolinkCheckRootline']) {
|
||
elseif ($GLOBALS['TSFE']->config['config']['typolinkCheckRootline']) {
|
||
// This checks if the linked id is in the rootline of this site and if not it will find the domain for that ID and prefix it:
|
||
$tCR_rootline = $GLOBALS['TSFE']->sys_page->getRootLine($page['uid']); // Gets rootline of linked-to page
|
||
$tCR_flag = 0;
|
||
... | ... | |
}
|
||
}
|
||
// If other domain, overwrite
|
||
if (strlen($tCR_domain)) {
|
||
if (strlen($tCR_domain) && !$GLOBALS['TSFE']->config['config']['typolinkEnableLinksAccrosDomains']) {
|
||
$target = isset($conf['extTarget']) ? $conf['extTarget'] : $GLOBALS['TSFE']->extTarget;
|
||
if ($conf['extTarget.']) {$target = $this->stdWrap($target, $conf['extTarget.']);}
|
||
if ($forceTarget) {$target=$forceTarget;}
|
||
$LD['target'] = $target;
|
||
$this->lastTypoLinkUrl = $this->URLqMark('http://'.$tCR_domain.'/index.php?id='.$page['uid'],$addQueryParams).$sectionMark;
|
||
} else { // Internal link:
|
||
if ($forceTarget) {$target=$forceTarget;}
|
||
if ($forceTarget) {
|
||
$target=$forceTarget;
|
||
}
|
||
$LD = $GLOBALS['TSFE']->tmpl->linkData($page,$target,$conf['no_cache'],'','',$addQueryParams,$theTypeP);
|
||
if (strlen($tCR_domain)) {
|
||
$LD['totalURL'] = 'http://' . $tCR_domain . ($LD['totalURL']{0} == '/' ? '' : '/') . $LD['totalURL'];
|
||
}
|
||
$this->lastTypoLinkUrl = $this->URLqMark($LD['totalURL'],'').$sectionMark;
|
||
}
|
||