A few more for bug 41122
authorReedy <reedy@wikimedia.org>
Fri, 19 Oct 2012 23:17:59 +0000 (00:17 +0100)
committerReedy <reedy@wikimedia.org>
Fri, 19 Oct 2012 23:17:59 +0000 (00:17 +0100)
Change-Id: I756067c8e40eafff87f8f448a9e037228afd3bf3

includes/api/ApiParse.php

index b8e0233..1a55d5a 100644 (file)
@@ -153,7 +153,6 @@ class ApiParse extends ApiBase {
                                        $oldid = $pageObj->getLatest();
                                }
 
-
                                $popts = $pageObj->makeParserOptions( $this->getContext() );
                                $popts->enableLimitReport( !$params['disablepp'] );
 
@@ -204,9 +203,9 @@ class ApiParse extends ApiBase {
 
                        // Not cached (save or load)
                        if ( $params['pst'] ) {
-                               $p_result = $this->pstContent->getParserOutput( $titleObj, $popts );
+                               $p_result = $this->pstContent->getParserOutput( $titleObj, null, $popts );
                        } else {
-                               $p_result = $this->content->getParserOutput( $titleObj, $popts );
+                               $p_result = $this->content->getParserOutput( $titleObj, null, $popts );
                        }
                }
 
@@ -360,7 +359,7 @@ class ApiParse extends ApiBase {
                                !is_null( $pageId ) ? 'page id ' . $pageId : $page->getTitle()->getText() );
 
                        // Not cached (save or load)
-                       return $this->content->getParserOutput( $page->getTitle(), $popts );
+                       return $this->content->getParserOutput( $page->getTitle(), null, $popts );
                } else {
                        // Try the parser cache first
                        // getParserOutput will save to Parser cache if able