* Populate rev_parent_id
[lhc/web/wiklou.git] / includes / SpecialMostlinkedcategories.php
index c2e465d..9d7a968 100644 (file)
@@ -8,10 +8,6 @@
  * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
  */
-
-/**
- * @addtogroup SpecialPage
- */
 class MostlinkedCategoriesPage extends QueryPage {
 
        function getName() { return 'Mostlinkedcategories'; }
@@ -19,7 +15,7 @@ class MostlinkedCategoriesPage extends QueryPage {
        function isSyndicated() { return false; }
 
        function getSQL() {
-               $dbr =& wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE );
                $categorylinks = $dbr->tableName( 'categorylinks' );
                $name = $dbr->addQuotes( $this->getName() );
                return
@@ -39,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
@@ -76,4 +72,4 @@ function wfSpecialMostlinkedCategories() {
        $wpp->doQuery( $offset, $limit );
 }
 
-?>
+