X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryCategoryMembers.php;h=35f76176c39a1a88f48cbc9c04258fb8e2a4f7ff;hb=f85df0ac40a09cc41016f7f003139e9671d245b7;hp=4042bd74bdc736ef0adfaf06164327678b04d0c4;hpb=5d0a9bb42d34e399ab7607abd7945e88c21727f7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryCategoryMembers.php b/includes/api/ApiQueryCategoryMembers.php index 4042bd74bd..35f76176c3 100644 --- a/includes/api/ApiQueryCategoryMembers.php +++ b/includes/api/ApiQueryCategoryMembers.php @@ -151,29 +151,23 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase { $this->addWhereRange( 'cl_from', $dir, null, null ); } else { if ( $params['startsortkeyprefix'] !== null ) { - $startsortkey = Collation::singleton()->getSortkey( $params['startsortkeyprefix'] ); + $startsortkey = Collation::singleton()->getSortKey( $params['startsortkeyprefix'] ); } elseif ( $params['starthexsortkey'] !== null ) { if ( !$this->validateHexSortkey( $params['starthexsortkey'] ) ) { $this->dieUsage( 'The starthexsortkey provided is not valid', 'bad_starthexsortkey' ); } $startsortkey = pack( 'H*', $params['starthexsortkey'] ); } else { - if ( $params['startsortkey'] !== null ) { - $this->logFeatureUsage( 'list=categorymembers&cmstartsortkey' ); - } $startsortkey = $params['startsortkey']; } if ( $params['endsortkeyprefix'] !== null ) { - $endsortkey = Collation::singleton()->getSortkey( $params['endsortkeyprefix'] ); + $endsortkey = Collation::singleton()->getSortKey( $params['endsortkeyprefix'] ); } elseif ( $params['endhexsortkey'] !== null ) { if ( !$this->validateHexSortkey( $params['endhexsortkey'] ) ) { $this->dieUsage( 'The endhexsortkey provided is not valid', 'bad_endhexsortkey' ); } $endsortkey = pack( 'H*', $params['endhexsortkey'] ); } else { - if ( $params['endsortkey'] !== null ) { - $this->logFeatureUsage( 'list=categorymembers&cmendsortkey' ); - } $endsortkey = $params['endsortkey']; } @@ -314,7 +308,8 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase { 'sortkeyprefix', 'type', 'timestamp', - ) + ), + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'namespace' => array( ApiBase::PARAM_ISMULTI => true,