Bug #20314 ยป 10906.diff
t3lib/class.t3lib_parsehtml_proc.php (working copy) | ||
---|---|---|
$idPart = intval($idPartR['uid']);
|
||
}
|
||
$page = t3lib_BEfunc::getRecord('pages', $idPart);
|
||
$isLinkHandler = false;
|
||
if(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler'])) {
|
||
$linkHandlerKeys = array_keys($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler']);
|
||
foreach ($linkHandlerKeys as $key) {
|
||
if (substr($link_param, 0, strlen($key) + 1) == $key . ':') {
|
||
$isLinkHandler = true;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
if (is_array($page)) { // Page must exist...
|
||
$pairParts = t3lib_div::trimExplode(',',$link_param);
|
||
$href = $siteUrl.'?id='.$pairParts[0].($pairParts[2]?$pairParts[2]:'');
|
||
} else if(strtolower(substr($link_param, 0, 7)) == 'record:') {
|
||
// linkHandler - allowing links to start with "record:"
|
||
} else if ($isLinkHandler) {
|
||
// linkHandler - allowing links to start with registered keyword, eg "record:"
|
||
$href = $link_param;
|
||
} else {
|
||
#$href = '';
|