r2457 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2456‎ | r2457 | r2458 >
Date:21:02, 8 February 2004
Author:timwi
Status:old
Tags:
Comment:
Remove self-links and display their text in bold instead.
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -1047,6 +1047,11 @@
10481048 continue;
10491049 }
10501050 }
 1051+ if( ( $nt->getPrefixedText() == $wgTitle->getPrefixedText() ) &&
 1052+ ( strpos( $link, "#" ) == FALSE ) ) {
 1053+ $s .= "<strong>" . $text . "</strong>" . $trail;
 1054+ continue;
 1055+ }
10511056 if( $ns == $media ) {
10521057 $s .= $sk->makeMediaLinkObj( $nt, $text ) . $trail;
10531058 $wgLinkCache->addImageLinkObj( $nt );

Status & tagging log