* Add form to RCLinked and add to sp:specialpages
[lhc/web/wiklou.git] / includes / SpecialMostlinkedcategories.php
index d0a99b3..9d7a968 100644 (file)
@@ -35,10 +35,10 @@ class MostlinkedCategoriesPage extends QueryPage {
        /**
         * Fetch user page links and cache their existence
         */
-       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