Bug #16741 » patch_typolink.diff

Administrator Admin, 2006-11-27 10:35

View differences:

class.tslib_content.php (working copy)
5286 5286
			if ($forceTitle)	{$title=$forceTitle;}
5287 5287

  
5288 5288
			if ($JSwindowParams)	{
5289

  
5289
                $target=$conf['JSWindow.']['target']?$conf['JSWindow.']['target']:'FEopenLink';
5290
                $winObj=$conf['JSWindow.']['newWindow']?'vHWin_'.md5(rand()):'vHWin';
5290 5291
					// Create TARGET-attribute only if the right doctype is used
5291 5292
				if (!t3lib_div::inList('xhtml_strict,xhtml_11,xhtml_2', $GLOBALS['TSFE']->xhtmlDoctype))	{
5292
					$target = ' target="FEopenLink"';
5293
					$target = $target;
5293 5294
				} else {
5294 5295
					$target = '';
5295 5296
				}
5296 5297

  
5297
				$onClick="vHWin=window.open('".$GLOBALS['TSFE']->baseUrlWrap($finalTagParts['url'])."','FEopenLink','".$JSwindowParams."');vHWin.focus();return false;";
5298
				$onClick=$winObj."=window.open('".$GLOBALS['TSFE']->baseUrlWrap($finalTagParts['url'])."',$target,'".$JSwindowParams."');".$winObj.".focus();return false;";
5298 5299
				$res = '<a href="'.htmlspecialchars($finalTagParts['url']).'"'. $target .' onclick="'.htmlspecialchars($onClick).'"'.($title?' title="'.$title.'"':'').($linkClass?' class="'.$linkClass.'"':'').$finalTagParts['aTagParams'].'>';
5299 5300
			} else {
5300 5301
				if ($GLOBALS['TSFE']->spamProtectEmailAddresses === 'ascii' && $finalTagParts['TYPE'] === 'mailto') {
(1-1/2)