From c19d7a9ef1064e848f9ef22c9fb207f4e175c9ac Mon Sep 17 00:00:00 2001 From: Arne Heizmann Date: Sun, 8 Feb 2004 21:02:41 +0000 Subject: [PATCH] Remove self-links and display their text in bold instead. --- includes/OutputPage.php | 5 +++++ 1 file changed, 5 insertions(+) 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 ); -- 2.20.1