Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | |
75 | 75 | $popts = new ParserOptions(); |
76 | 76 | $popts->setTidy( true ); |
77 | | - $popts->enableLimitReport(); |
| 77 | + $popts->enableLimitReport( !$params['disablepp'] ); |
78 | 78 | $redirValues = null; |
79 | 79 | if ( !is_null( $oldid ) || !is_null( $pageid ) || !is_null( $page ) ) { |
80 | 80 | if ( !is_null( $oldid ) ) { |
— | — | @@ -401,6 +401,7 @@ |
402 | 402 | 'onlypst' => false, |
403 | 403 | 'uselang' => null, |
404 | 404 | 'section' => null, |
| 405 | + 'disablepp' => false, |
405 | 406 | ); |
406 | 407 | } |
407 | 408 | |
— | — | @@ -441,6 +442,7 @@ |
442 | 443 | ), |
443 | 444 | 'uselang' => 'Which language to parse the request in', |
444 | 445 | 'section' => 'Only retrieve the content of this section number', |
| 446 | + 'disablepp' => 'Disable the PP Report from the parser output', |
445 | 447 | ); |
446 | 448 | } |
447 | 449 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -315,6 +315,7 @@ |
316 | 316 | * (bug 24485) Make iwbacklinks a generator, optionally display iwprefix and iwtitle |
317 | 317 | * (bug 24564) Fix fatal errors when using list=deletedrevs, prop=revisions or |
318 | 318 | one of the backlinks generators with limit=max. |
| 319 | +* (bug 24656) API's parse module needs option to disable PP report |
319 | 320 | |
320 | 321 | === Languages updated in 1.17 === |
321 | 322 | |