Index: trunk/phase3/includes/api/ApiResult.php |
— | — | @@ -257,6 +257,9 @@ |
258 | 258 | if ( $this->mCheckingSize ) { |
259 | 259 | $newsize = $this->mSize + self::size( $value ); |
260 | 260 | if ( $newsize > $wgAPIMaxResultSize ) { |
| 261 | + $this->setWarning( |
| 262 | + "This result was truncated because it would otherwise be larger than the " . |
| 263 | + "limit of {$wgAPIMaxResultSize} bytes" ); |
261 | 264 | return false; |
262 | 265 | } |
263 | 266 | $this->mSize = $newsize; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -37,6 +37,7 @@ |
38 | 38 | * (bug 18372) File types blacklisted by $wgFileBlacklist will no longer be shown as "Permitted file types" on the upload form |
39 | 39 | |
40 | 40 | === API changes in 1.18 === |
| 41 | +* (bug 26339) Throw warning when truncating an overlarge API result |
41 | 42 | |
42 | 43 | === Languages updated in 1.18 === |
43 | 44 | |