Use formatNum for counts on category page.
[lhc/web/wiklou.git] / includes / SpecialWantedcategories.php
index 27a9f17..0f554db 100644 (file)
  */
 class WantedCategoriesPage extends QueryPage {
 
-       function getName() { return 'Wantedcategories'; }
-       function isExpensive() { return true; }
-       function isSyndicated() { return false; }
+       function getName() {
+               return 'Wantedcategories';
+       }
+
+       function isExpensive() {
+               return true;
+       }
+
+       function isSyndicated() {
+               return false;
+       }
 
        function getSQL() {
                $dbr = wfGetDB( DB_SLAVE );
@@ -37,10 +45,10 @@ class WantedCategoriesPage 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 +84,4 @@ function wfSpecialWantedCategories() {
        $wpp->doQuery( $offset, $limit );
 }
 
-?>
+