Merge "Update ApiResult handling for mediawiki/core change I7b37295e"

This commit is contained in:
jenkins-bot 2015-02-23 21:40:21 +00:00 committed by Gerrit Code Review
commit 0308eba5cb

View file

@ -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();
}