From: Arne Heizmann Date: Sun, 8 Feb 2004 21:02:41 +0000 (+0000) Subject: Remove self-links and display their text in bold instead. X-Git-Tag: 1.3.0beta1~1005 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=c19d7a9ef1064e848f9ef22c9fb207f4e175c9ac;p=lhc%2Fweb%2Fwiklou.git Remove self-links and display their text in bold instead. --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index b964f038ac..ac82ad2788 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1047,6 +1047,11 @@ $t[] = "" ; continue; } } + if( ( $nt->getPrefixedText() == $wgTitle->getPrefixedText() ) && + ( strpos( $link, "#" ) == FALSE ) ) { + $s .= "" . $text . "" . $trail; + continue; + } if( $ns == $media ) { $s .= $sk->makeMediaLinkObj( $nt, $text ) . $trail; $wgLinkCache->addImageLinkObj( $nt );