Sascha Noyes wrote:
What about links to other sections of the article.
(eg.
[[samearticle#References]] ?
Thanks! Fixed:
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:15:16 -0000
@@ -1054,6 +1054,11 @@
$s .= $sk->makeLink( $link, $text, "", $trail );
*/
}
+ if( $nt->getPrefixedText() == $wgTitle->getPrefixedText()
+ and substr( $link, "#" ) == FALSE ) {
+ $s .= "<strong>" . $text . "</strong>" . $trail;
+ continue;
+ }
if( $ns == $media ) {
$s .= $sk->makeMediaLinkObj( $nt, $text ) . $trail;
$wgLinkCache->addImageLinkObj( $nt );