X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiComparePages.php;h=375fc189362c226581e2e755d4daaca4a17d63c5;hb=921b218628016a80198f9301e6340ff34a07c41f;hp=54865948a88d2a2d585850872520a4072198b206;hpb=ba00b23a1d6fea3f05c617d3df73d60ab28dfdf4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php index 54865948a8..375fc18936 100644 --- a/includes/api/ApiComparePages.php +++ b/includes/api/ApiComparePages.php @@ -167,7 +167,10 @@ class ApiComparePages extends ApiBase { ApiResult::setContentValue( $vals, 'body', $difftext ); } - $this->getResult()->addValue( null, $this->getModuleName(), $vals ); + // Diffs can be really big and there's little point in having + // ApiResult truncate it to an empty response since the diff is the + // whole reason this module exists. So pass NO_SIZE_CHECK here. + $this->getResult()->addValue( null, $this->getModuleName(), $vals, ApiResult::NO_SIZE_CHECK ); } /**