mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 10:59:42 +00:00
Merge "Update ApiResult handling for mediawiki/core change I7b37295e"
This commit is contained in:
commit
0308eba5cb
|
@ -146,8 +146,12 @@ class SpecialThanks extends FormSpecialPage {
|
|||
return $this->handleErrorCodes( $e->getCodeString() );
|
||||
}
|
||||
|
||||
$result = $api->getResult()->getData();
|
||||
$this->result = $result['result'];
|
||||
if ( defined( 'ApiResult::META_CONTENT' ) ) {
|
||||
$this->result = $api->getResult()->getResultData( array( 'result' ) );
|
||||
} else {
|
||||
$result = $api->getResult()->getData();
|
||||
$this->result = $result['result'];
|
||||
}
|
||||
return Status::newGood();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue