(bug 6103) Wrap self-links in a CSS class ("selflink")
authorRob Church <robchurch@users.mediawiki.org>
Fri, 26 May 2006 23:15:37 +0000 (23:15 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 26 May 2006 23:15:37 +0000 (23:15 +0000)
RELEASE-NOTES
includes/Linker.php

index d83d45e..5d7eec8 100644 (file)
@@ -351,7 +351,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Add $wgIgnoreImageErrors to suppress error messages for thumbnail rendering
   problems. If errors are transitory, this should reduce annoying messages
   making it into cached display.
-
+* (bug 6103) Wrap self-links in a CSS class ("selflink")
 
 == Compatibility ==
 
index 4fe385f..0bafe0e 100644 (file)
@@ -426,7 +426,7 @@ class Linker {
                        $text = htmlspecialchars( $nt->getPrefixedText() );
                }
                list( $inside, $trail ) = Linker::splitTrail( $trail );
-               return "<strong>{$prefix}{$text}{$inside}</strong>{$trail}";
+               return "<span class=\"selflink\"><strong>{$prefix}{$text}{$inside}</strong></span>{$trail}";
        }
 
        /** @todo document */