From: Petr Onderka Date: Wed, 18 Jul 2012 10:10:41 +0000 (+0200) Subject: Revert "Do not show empty categories with list=allcategories" X-Git-Tag: 1.31.0-rc.0~22991^2 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=0ec20050d0dd7b985bf135cf5ecc8d20423f84d8;p=lhc%2Fweb%2Fwiklou.git 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 --- 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'] );