Revert r34906, r34907, r34928 -- mixing high-level data into low-level storage functi...
[lhc/web/wiklou.git] / includes / SpecialWantedpages.php
index 7afa3de..f43d068 100644 (file)
@@ -51,10 +51,10 @@ class WantedPagesPage extends QueryPage {
        /**
         * Cache page existence for performance
         */
-       function preprocessResults( &$db, &$res ) {
+       function preprocessResults( $db, $res ) {
                $batch = new LinkBatch;
                while ( $row = $db->fetchObject( $res ) )
-                       $batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
+                       $batch->add( $row->namespace, $row->title );
                $batch->execute();
 
                // Back to start for display
@@ -71,7 +71,6 @@ class WantedPagesPage extends QueryPage {
         * @return string
         */
        public function formatResult( $skin, $result ) {
-               global $wgLang;
                $title = Title::makeTitleSafe( $result->namespace, $result->title );
                if( $title instanceof Title ) {
                        if( $this->isCached() ) {
@@ -87,7 +86,7 @@ class WantedPagesPage extends QueryPage {
                        return "Invalid title in result set; {$tsafe}";
                }
        }
-       
+
        /**
         * Make a "what links here" link for a specified result if required
         *
@@ -107,7 +106,7 @@ class WantedPagesPage extends QueryPage {
                        return null;
                }
        }
-       
+
 }
 
 /**
@@ -130,5 +129,3 @@ function wfSpecialWantedpages( $par = null, $specialPage ) {
 
        $wpp->doQuery( $offset, $limit, !$inc );
 }
-
-?>