From: Sam Reed Date: Thu, 30 Jun 2011 02:14:45 +0000 (+0000) Subject: Minor tweaks for r83833 per CR X-Git-Tag: 1.31.0-rc.0~29169 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=72e1202cd6cd1ecd4b1ce82289542e8cf0387144;p=lhc%2Fweb%2Fwiklou.git Minor tweaks for r83833 per CR --- diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index f63ee87975..264e0fd704 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -69,8 +69,8 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { $to = ( is_null( $params['to'] ) ? null : $this->titlePartToKey( $params['to'] ) ); $this->addWhereRange( 'cat_title', $dir, $from, $to ); - $min = $params['minpage']; - $max = $params['maxpage']; + $min = $params['min']; + $max = $params['max']; $this->addWhereRange( 'cat_pages', $dir, $min, $max ); if ( isset( $params['prefix'] ) ) { @@ -152,11 +152,11 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { 'descending' ), ), - 'minpage' => array( + 'mine' => array( ApiBase::PARAM_DFLT => null, ApiBase::PARAM_TYPE => 'integer' ), - 'maxpage' => array( + 'max' => array( ApiBase::PARAM_DFLT => null, ApiBase::PARAM_TYPE => 'integer' ), @@ -181,8 +181,8 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { 'to' => 'The category to stop enumerating at', 'prefix' => 'Search for all category titles that begin with this value', 'dir' => 'Direction to sort in', - 'minpage' => 'Minimum number of category page members', - 'maxpage' => 'Maximum number of category page members', + 'min' => 'Minimum number of category members', + 'max' => 'Maximum number of category members', 'limit' => 'How many categories to return', 'prop' => array( 'Which properties to get',