Remove "(not written yet)" text from title (introduced in r31140. It broke many bots...
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Fri, 22 Feb 2008 18:49:09 +0000 (18:49 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Fri, 22 Feb 2008 18:49:09 +0000 (18:49 +0000)
RELEASE-NOTES
includes/Linker.php

index c823ecb..75d22a3 100644 (file)
@@ -168,8 +168,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Don't show edit permissions errors on a red link click, just redirect to the 
   article. This is so that readers who don't know what a red link is aren't 
   confused when they are told they are range-blocked.
-* Put "not yet written" in the title attribute of red links, so that readers
-  unfamiliar with the site might guess what the colour means.
 * One can turn off syndicatino feeds by setting $wgFeed to false
 
 === Bug fixes in 1.12 ===
index ea74fa5..18c2d43 100644 (file)
@@ -350,12 +350,11 @@ class Linker {
                }
                $u = $nt->escapeLocalURL( $q );
 
-               $titleText = $nt->getPrefixedText();
+               $titleText = $nt->getFullText();
                if ( '' == $text ) {
                        $text = htmlspecialchars( $titleText );
                }
-               $titleAttr = wfMsg( 'red-link-title', $titleText );
-               $style = $this->getInternalLinkAttributesObj( $nt, $text, 'new', $titleAttr );
+               $style = $this->getInternalLinkAttributesObj( $nt, $text, 'new', $titleText );
 
                list( $inside, $trail ) = Linker::splitTrail( $trail );
                $s = "<a href=\"{$u}\"{$style}>{$prefix}{$text}{$inside}</a>{$trail}";