Bug #25317 ยป patch-typolink.diff
class.t3lib_tstemplate.php 2011-03-14 13:52:26.000000000 +0100 | ||
---|---|---|
if (strcmp($typeOverride, '')) {
|
||
$typeNum = $typeOverride;
|
||
} // Override...
|
||
if ($typeNum) {
|
||
if (t3lib_div::testInt($typeNum)) {
|
||
$LD['type'] = '&type=' . intval($typeNum);
|
||
} else {
|
||
$LD['type'] = '';
|
||
... | ... | |
// linkVars
|
||
if ($GLOBALS['TSFE']->config['config']['uniqueLinkVars']) {
|
||
if ($addParams) {
|
||
$LD['linkVars'] = t3lib_div::implodeArrayForUrl('', t3lib_div::explodeUrl2Array($GLOBALS['TSFE']->linkVars . $addParams));
|
||
if ($addParams || $LD['type']) {
|
||
$linkVarsArray = t3lib_div::explodeUrl2Array($GLOBALS['TSFE']->linkVars . $LD['type'] . $addParams);
|
||
// don't use explicit parameter for type 0
|
||
if (isset($linkVarsArray['type']) && $linkVarsArray['type'] == 0) {
|
||
unset($linkVarsArray['type']);
|
||
}
|
||
$LD['linkVars'] = t3lib_div::implodeArrayForUrl('', $linkVarsArray);
|
||
} else {
|
||
$LD['linkVars'] = $GLOBALS['TSFE']->linkVars;
|
||
}
|
||
... | ... | |
$LD['sectionIndex'] = $page['sectionIndex_uid'] ? '#c' . $page['sectionIndex_uid'] : '';
|
||
// Compile the normal total url
|
||
$LD['totalURL'] = $this->removeQueryString($LD['url'] . $LD['type'] . $LD['no_cache'] . $LD['linkVars'] . $GLOBALS['TSFE']->getMethodUrlIdToken) . $LD['sectionIndex'];
|
||
$LD['totalURL'] = $this->removeQueryString($LD['url'] . $LD['no_cache'] . $LD['linkVars'] . $GLOBALS['TSFE']->getMethodUrlIdToken) . $LD['sectionIndex'];
|
||
// Call post processing function for link rendering:
|
||
if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'])) {
|