Further cleanup for core API change

PS25 and later changed things around a fair bit, meaning the previous update
needs some further updating. In some cases additional cleanup is also necessary
for future core API changes.

Bug: T96595
Change-Id: I1573e523cf3c945fca95d8d2db002f5abcdbb29d
This commit is contained in:
Brad Jorsch 2015-04-20 14:41:29 -04:00
parent 6d16af29ee
commit 95002e7a59

View file

@ -191,8 +191,10 @@ class ApiQueryExtracts extends ApiQueryBase {
try {
$api->execute();
if ( defined( 'ApiResult::META_CONTENT' ) ) {
$data = $api->getResult()->getResultData();
$data = ApiResult::transformForBC( $data );
$data = $api->getResult()->getResultData( null, array(
'BC' => array(),
'Types' => array(),
) );
} else {
$data = $api->getResultData();
}
@ -204,8 +206,10 @@ class ApiQueryExtracts extends ApiQueryBase {
$api = new ApiMain( new FauxRequest( $request ) );
$api->execute();
if ( defined( 'ApiResult::META_CONTENT' ) ) {
$data = $api->getResult()->getResultData();
$data = ApiResult::transformForBC( $data );
$data = $api->getResult()->getResultData( null, array(
'BC' => array(),
'Types' => array(),
) );
} else {
$data = $api->getResultData();
}