static $tc = FALSE;
# the % is needed to support urlencoded titles as well
if ( !$tc ) { $tc = Title::legalChars() . '#%'; }
+
$sk =& $this->mOptions->getSkin();
+ global $wgUseOldExistenceCheck;
+ # "Post-parse link colour check" works only on wiki text since it's now
+ # in Parser. Enable it, then disable it when we're done.
+ $saveParseColour = $sk->postParseLinkColour( !$wgUseOldExistenceCheck );
$redirect = MagicWord::get ( MAG_REDIRECT ) ;
}
$s .= $sk->makeLinkObj( $nt, $text, '', $trail, $prefix );
}
+ $sk->postParseLinkColour( $saveParseColour );
wfProfileOut( $fname );
return $s;
}
var $rc_cache ; # Cache for Enhanced Recent Changes
var $rcCacheIndex ; # Recent Changes Cache Counter for visibility toggle
var $rcMoveIndex;
- var $postParseLinkColour = true;
+ var $postParseLinkColour = false;
/**#@-*/
function Skin() {
- global $wgUseOldExistenceCheck;
- $postParseLinkColour = !$wgUseOldExistenceCheck;
$this->linktrail = wfMsg('linktrail');
}