From 6bbe4076e1fcc3b638c2fa727ef2486596455514 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 20 Oct 2012 00:17:59 +0100 Subject: [PATCH] A few more for bug 41122 Change-Id: I756067c8e40eafff87f8f448a9e037228afd3bf3 --- includes/api/ApiParse.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index b8e0233af6..1a55d5a16b 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -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 -- 2.20.1