* (bug 3803) Fix links on Special:Wantedcategories with miser mode off
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 26 Oct 2005 20:53:58 +0000 (20:53 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 26 Oct 2005 20:53:58 +0000 (20:53 +0000)
Also removed apparently miscopied preprocessing function from another page

RELEASE-NOTES
includes/SpecialWantedcategories.php

index 3f3b241..4712099 100644 (file)
@@ -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 ===
index a78fb08..e21fd99 100644 (file)
@@ -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)";