From: Brian Wolff Date: Thu, 26 Dec 2013 22:47:01 +0000 (-0700) Subject: Don't include empty categories in Special:Mostlinkedcategories X-Git-Tag: 1.31.0-rc.0~17121 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=a42c28d871af7a4ccaec16f81fece782e665f96d;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' ), ); }