Merge "Cache countable statistics to prevent multiple counting on import"
[lhc/web/wiklou.git] / includes / specials / SpecialMostlinkedcategories.php
index 0d4641b..cc718e0 100644 (file)
@@ -44,6 +44,7 @@ class MostlinkedCategoriesPage extends QueryPage {
                        'fields' => array( 'title' => 'cat_title',
                                'namespace' => NS_CATEGORY,
                                'value' => 'cat_pages' ),
+                       'conds' => array( 'cat_pages > 0' ),
                );
        }
 
@@ -54,7 +55,7 @@ class MostlinkedCategoriesPage extends QueryPage {
        /**
         * Fetch user page links and cache their existence
         *
-        * @param DatabaseBase $db
+        * @param IDatabase $db
         * @param ResultWrapper $res
         */
        function preprocessResults( $db, $res ) {