From 0ec20050d0dd7b985bf135cf5ecc8d20423f84d8 Mon Sep 17 00:00:00 2001 From: Petr Onderka Date: Wed, 18 Jul 2012 12:10:41 +0200 Subject: [PATCH] Revert "Do not show empty categories with list=allcategories" This reverts commit 4b9bd6a4dba57026b2f18d4024b021407e52ff4f. This change made allcategories less useful, because it means it's impossible to list empty categories (previously, acmax=0 did that). To exclude empty categories, acmin=1 can be used. Change-Id: I7943507c4cb7d752f82caa69ce3edb0b31ca9463 --- includes/api/ApiQueryAllCategories.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index c81222ae33..282faa4d1d 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -57,7 +57,6 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { $this->addTables( 'category' ); $this->addFields( 'cat_title' ); - $this->addWhere( 'cat_pages > 0' ); if ( !is_null( $params['continue'] ) ) { $cont = explode( '|', $params['continue'] ); -- 2.20.1