Remove self-links and display their text in bold instead.
authorArne Heizmann <timwi@users.mediawiki.org>
Sun, 8 Feb 2004 21:02:41 +0000 (21:02 +0000)
committerArne Heizmann <timwi@users.mediawiki.org>
Sun, 8 Feb 2004 21:02:41 +0000 (21:02 +0000)
includes/OutputPage.php

index b964f03..ac82ad2 100644 (file)
@@ -1047,6 +1047,11 @@ $t[] = "</table>" ;
                                        continue;
                                }
                        }
+                       if( ( $nt->getPrefixedText() == $wgTitle->getPrefixedText() ) &&
+                           ( strpos( $link, "#" ) == FALSE ) ) {
+                               $s .= "<strong>" . $text . "</strong>" . $trail;
+                               continue;
+                       }
                        if( $ns == $media ) {
                                $s .= $sk->makeMediaLinkObj( $nt, $text ) . $trail;
                                $wgLinkCache->addImageLinkObj( $nt );