diff --git a/includes/PageImages.php b/includes/PageImages.php index a73fec0..bcda076 100644 --- a/includes/PageImages.php +++ b/includes/PageImages.php @@ -184,15 +184,9 @@ class PageImages { $api = new ApiMain( new FauxRequest( $request ) ); $api->execute(); - if ( defined( 'ApiResult::META_CONTENT' ) ) { - $ret += (array)$api->getResult()->getResultData( [ 'query', 'pages' ], - [ 'Strip' => 'base' ] ); - } else { - $data = $api->getResultData(); - if ( isset( $data['query']['pages'] ) ) { - $ret += $data['query']['pages']; - } - } + $ret += (array)$api->getResult()->getResultData( + [ 'query', 'pages' ], [ 'Strip' => 'base' ] + ); } return $ret; }