From 5f411cc36c75fb4778597dde8532a1f68f2d51c8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 26 Oct 2005 20:53:58 +0000 Subject: [PATCH] * (bug 3803) Fix links on Special:Wantedcategories with miser mode off Also removed apparently miscopied preprocessing function from another page --- RELEASE-NOTES | 1 + includes/SpecialWantedcategories.php | 19 +------------------ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3f3b241f0d..471209927d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -174,6 +174,7 @@ fully support the editing toolbar, but was found to be too confusing. * Edit box now remembers scrollbar position on preview * (bug 3798) DoubleRedirects no longer has hard coded arrows * (bug 2324) image for redirects should be without text and oriented according to content language +* (bug 3803) Fix links on Special:Wantedcategories with miser mode off === Caveats === diff --git a/includes/SpecialWantedcategories.php b/includes/SpecialWantedcategories.php index a78fb08d17..e21fd9972a 100644 --- a/includes/SpecialWantedcategories.php +++ b/includes/SpecialWantedcategories.php @@ -43,23 +43,6 @@ class WantedCategoriesPage extends QueryPage { function sortDescending() { return true; } - /** - * Fetch user page links and cache their existence - */ - function preprocessResults( &$db, &$res ) { - global $wgLinkCache; - - $batch = new LinkBatch; - while ( $row = $db->fetchObject( $res ) ) - $batch->addObj( Title::makeTitleSafe( NS_USER, $row->title ) ); - $batch->execute( $wgLinkCache ); - - // Back to start for display - if ( $db->numRows( $res ) > 0 ) - // If there are no rows we get an error seeking. - $db->dataSeek( $res, 0 ); - } - function formatResult( $skin, $result ) { global $wgContLang; @@ -68,7 +51,7 @@ class WantedCategoriesPage extends QueryPage { $plink = $this->isCached() ? $skin->makeLinkObj( $nt, htmlspecialchars( $text ) ) : - $skin->makeBrokenLink( $nt->getText(), $text ); + $skin->makeBrokenLinkObj( $nt, htmlspecialchars( $text ) ); $nlinks = wfMsg( 'nlinks', $result->value ); return "$plink ($nlinks)"; -- 2.20.1