* (bug 24656) API's parse module needs option to disable PP report
authorSam Reed <reedy@users.mediawiki.org>
Wed, 4 Aug 2010 07:44:23 +0000 (07:44 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 4 Aug 2010 07:44:23 +0000 (07:44 +0000)
RELEASE-NOTES
includes/api/ApiParse.php

index f6428c5..23c39bc 100644 (file)
@@ -315,6 +315,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 24485) Make iwbacklinks a generator, optionally display iwprefix and iwtitle
 * (bug 24564) Fix fatal errors when using list=deletedrevs, prop=revisions or 
   one of the backlinks generators with limit=max.
+* (bug 24656) API's parse module needs option to disable PP report
 
 === Languages updated in 1.17 ===
 
index d850690..545c820 100644 (file)
@@ -73,7 +73,7 @@ class ApiParse extends ApiBase {
 
                $popts = new ParserOptions();
                $popts->setTidy( true );
-               $popts->enableLimitReport();
+               $popts->enableLimitReport( !$params['disablepp'] );
                $redirValues = null;
                if ( !is_null( $oldid ) || !is_null( $pageid ) || !is_null( $page ) ) {
                        if ( !is_null( $oldid ) ) {
@@ -401,6 +401,7 @@ class ApiParse extends ApiBase {
                        'onlypst' => false,
                        'uselang' => null,
                        'section' => null,
+                       'disablepp' => false,
                );
        }
 
@@ -441,6 +442,7 @@ class ApiParse extends ApiBase {
                        ),
                        'uselang' => 'Which language to parse the request in',
                        'section' => 'Only retrieve the content of this section number',
+                       'disablepp' => 'Disable the PP Report from the parser output',
                );
        }