X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=includes%2Fapi%2FApiQuery.php;h=5eb86ab3c7b93731864b5b73867e8e4bad8b0a1e;hb=be46ffa771e9bc6b09526b8acfd09d468987f91e;hp=1e912561bc6972310d0f98ce11bb986d579f4c61;hpb=1a7bde454ea4e0825e48037fba66638b4e967333;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 1e912561bc..5eb86ab3c7 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -450,7 +450,6 @@ class ApiQuery extends ApiBase { $exporter->pageByTitle( $title ); } $exporter->closeStream(); - $exportxml = $sink->getOutput(); // Don't check the size of exported stuff // It's not continuable, so it would cause more @@ -458,10 +457,10 @@ class ApiQuery extends ApiBase { if ( $this->mParams['exportnowrap'] ) { $result->reset(); // Raw formatter will handle this - $result->addValue( null, 'text', $exportxml, ApiResult::NO_SIZE_CHECK ); + $result->addValue( null, 'text', $sink, ApiResult::NO_SIZE_CHECK ); $result->addValue( null, 'mime', 'text/xml', ApiResult::NO_SIZE_CHECK ); } else { - $result->addValue( 'query', 'export', $exportxml, ApiResult::NO_SIZE_CHECK ); + $result->addValue( 'query', 'export', $sink, ApiResult::NO_SIZE_CHECK ); $result->addValue( 'query', ApiResult::META_BC_SUBELEMENTS, [ 'export' ] ); } }