CategoryPager: Allow categories with no members to be shown
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 30 Nov 2016 16:41:17 +0000 (17:41 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 30 Nov 2016 16:41:17 +0000 (17:41 +0100)
This affects the listing on Special:Categories.

Bug: T12915
Change-Id: I6265d20b8afd199832de6dd3b2e126a1c45d4b11

includes/specials/pagers/CategoryPager.php

index b78fed8..345577d 100644 (file)
@@ -52,7 +52,6 @@ class CategoryPager extends AlphabeticPager {
                return [
                        'tables' => [ 'category' ],
                        'fields' => [ 'cat_title', 'cat_pages' ],
-                       'conds' => [ 'cat_pages > 0' ],
                        'options' => [ 'USE INDEX' => 'cat_title' ],
                ];
        }