r91154 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91153‎ | r91154 | r91155 >
Date:02:14, 30 June 2011
Author:reedy
Status:resolved
Tags:
Comment:
Minor tweaks for r83833 per CR
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryAllCategories.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryAllCategories.php
@@ -69,8 +69,8 @@
7070 $to = ( is_null( $params['to'] ) ? null : $this->titlePartToKey( $params['to'] ) );
7171 $this->addWhereRange( 'cat_title', $dir, $from, $to );
7272
73 - $min = $params['minpage'];
74 - $max = $params['maxpage'];
 73+ $min = $params['min'];
 74+ $max = $params['max'];
7575 $this->addWhereRange( 'cat_pages', $dir, $min, $max );
7676
7777 if ( isset( $params['prefix'] ) ) {
@@ -152,11 +152,11 @@
153153 'descending'
154154 ),
155155 ),
156 - 'minpage' => array(
 156+ 'mine' => array(
157157 ApiBase::PARAM_DFLT => null,
158158 ApiBase::PARAM_TYPE => 'integer'
159159 ),
160 - 'maxpage' => array(
 160+ 'max' => array(
161161 ApiBase::PARAM_DFLT => null,
162162 ApiBase::PARAM_TYPE => 'integer'
163163 ),
@@ -181,8 +181,8 @@
182182 'to' => 'The category to stop enumerating at',
183183 'prefix' => 'Search for all category titles that begin with this value',
184184 'dir' => 'Direction to sort in',
185 - 'minpage' => 'Minimum number of category page members',
186 - 'maxpage' => 'Maximum number of category page members',
 185+ 'min' => 'Minimum number of category members',
 186+ 'max' => 'Maximum number of category members',
187187 'limit' => 'How many categories to return',
188188 'prop' => array(
189189 'Which properties to get',

Follow-up revisions

RevisionCommit summaryAuthorDate
r92268Fix typo in r91154catrope18:27, 15 July 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83833* (bug 27340) API: Allow listing of "small" categoriesreedy17:16, 13 March 2011

Status & tagging log