Here is the newest patch for the suggested change. I have
tested it thoroughly and it works perfectly now. (I've
learnt that strpos *is* different from substr ;-) )
Now, some more questions:
- Am I authorised to commit this change to CVS?
- Can someone put it on
test.wikipedia.org then?
- How long until it will be put live on the real servers?
Thanks,
Timwi
Index: phase3/includes/OutputPage.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/OutputPage.php,v
retrieving revision 1.79
diff -u -r1.79 OutputPage.php
--- phase3/includes/OutputPage.php 30 Jan 2004 17:07:50 -0000 1.79
+++ phase3/includes/OutputPage.php 1 Feb 2004 14:45:44 -0000
@@ -1054,6 +1054,11 @@
$s .= $sk->makeLink( $link, $text, "", $trail );
*/
}
+ 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 );