From: Brad Jorsch Date: Thu, 14 Aug 2014 17:18:07 +0000 (-0400) Subject: API: Add rawcontinue parameter to action=query X-Git-Tag: 1.31.0-rc.0~14034^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=be9a357bee7d019adeb16246f73ac890d8d87abd;p=lhc%2Fweb%2Fwiklou.git API: Add rawcontinue parameter to action=query Soon the simplified continuation will become the default for action=query. This parameter will then serve select the return of the raw continuation data. To allow for clients to transition without "unrecognized parameter" warnings, I'd like to add the parameter now before even adding deprecation warnings. Change-Id: I5f6895b6a94c53a231a50707ee9463f91295da8f --- diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 3d6372c5e0..8407fad794 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -526,6 +526,7 @@ class ApiQuery extends ApiBase { 'exportnowrap' => false, 'iwurl' => false, 'continue' => null, + 'rawcontinue' => false, ); if ( $flags ) { $result += $this->getPageSet()->getFinalParams( $flags ); @@ -608,6 +609,8 @@ class ApiQuery extends ApiBase { 'This parameter is recommended for all new development, and ' . 'will be made default in the next API version.' ), + 'rawcontinue' => 'Currently ignored. In the future, \'continue=\' will become the ' . + 'default and this will be needed to receive the raw query-continue data.', ); }