From a42c28d871af7a4ccaec16f81fece782e665f96d Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Thu, 26 Dec 2013 15:47:01 -0700 Subject: [PATCH] Don't include empty categories in Special:Mostlinkedcategories We never delete things from the category table, so there are entries in it with 0 members, which really shouldn't show up on the special page. Bug: 58967 Change-Id: I6bdf5a5196724f7970fb79497ef912cf8268ec3e --- includes/specials/SpecialMostlinkedcategories.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/specials/SpecialMostlinkedcategories.php b/includes/specials/SpecialMostlinkedcategories.php index 0d4641b189..f61a115881 100644 --- a/includes/specials/SpecialMostlinkedcategories.php +++ b/includes/specials/SpecialMostlinkedcategories.php @@ -44,6 +44,7 @@ class MostlinkedCategoriesPage extends QueryPage { 'fields' => array( 'title' => 'cat_title', 'namespace' => NS_CATEGORY, 'value' => 'cat_pages' ), + 'conds' => array( 'cat_pages > 0' ), ); } -- 2.20.1