mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-23 10:22:05 +00:00
ForeignWikiRequest: Specify formatversion, errorformat
Otherwise the parameters are copied from the local API request. That mostly works fine, but browsing the errors logged for T342201 is a bit confusing when they're in different formats. Change-Id: I5c361d6c0f7d635d3063290dec25f18bc6417e08
This commit is contained in:
parent
68d90d69a7
commit
c3c3aed4dc
|
@ -152,6 +152,8 @@ class ForeignWikiRequest {
|
||||||
'meta' => 'tokens',
|
'meta' => 'tokens',
|
||||||
'type' => $this->tokenType,
|
'type' => $this->tokenType,
|
||||||
'format' => 'json',
|
'format' => 'json',
|
||||||
|
'formatversion' => '1',
|
||||||
|
'errorformat' => 'bc',
|
||||||
'centralauthtoken' => $this->getCentralAuthToken( $this->user ),
|
'centralauthtoken' => $this->getCentralAuthToken( $this->user ),
|
||||||
], $originalRequest );
|
], $originalRequest );
|
||||||
$responses = $this->doRequests( $reqs );
|
$responses = $this->doRequests( $reqs );
|
||||||
|
@ -232,6 +234,8 @@ class ForeignWikiRequest {
|
||||||
// results in the format the user requested but in a fixed format that
|
// results in the format the user requested but in a fixed format that
|
||||||
// we can interpret here
|
// we can interpret here
|
||||||
'format' => 'json',
|
'format' => 'json',
|
||||||
|
'formatversion' => '1',
|
||||||
|
'errorformat' => 'bc',
|
||||||
] + $extraParams + $this->params;
|
] + $extraParams + $this->params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue