From 4e80538c8998bd57b4db68d3173c6cea4fcb967f Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Fri, 22 Feb 2008 18:49:09 +0000 Subject: [PATCH] Remove "(not written yet)" text from title (introduced in r31140. It broke many bots which used title attribute of link for getting its target. --- RELEASE-NOTES | 2 -- includes/Linker.php | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c823ecbd68..75d22a31a6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Linker.php b/includes/Linker.php index ea74fa527d..18c2d43626 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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 = "{$prefix}{$text}{$inside}{$trail}"; -- 2.20.1