mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-15 03:35:20 +00:00
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:
parent
6d16af29ee
commit
95002e7a59
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue