API: Change acprop description to allow for future expansion
[lhc/web/wiklou.git] / includes / SpecialMostlinked.php
index b4de0a0..1827d96 100644 (file)
@@ -39,11 +39,11 @@ class MostlinkedPage extends QueryPage {
        /**
         * Pre-fill the link cache
         */
-       function preprocessResults( &$db, &$res ) {
+       function preprocessResults( $db, $res ) {
                if( $db->numRows( $res ) > 0 ) {
                        $linkBatch = new LinkBatch();
                        while( $row = $db->fetchObject( $res ) )
-                               $linkBatch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
+                               $linkBatch->add( $row->namespace, $row->title );
                        $db->dataSeek( $res, 0 );
                        $linkBatch->execute();
                }