From 03ada62815331a42427f0cf2da17e335dcd2b0b6 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 1 Jan 2011 23:06:04 +0000 Subject: [PATCH] Add missing $popts parameter, and pass it from r79455 --- includes/api/ApiParse.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 6f3ddaa47d..42a0047e60 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -97,7 +97,7 @@ class ApiParse extends ApiBase { if ( $titleObj->getLatestRevID() === intval( $oldid ) ) { $articleObj = new Article( $titleObj ); - $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $pageid ) ; + $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $popts, $pageid ) ; } else { $text = $rev->getText( Revision::FOR_THIS_USER ); @@ -147,7 +147,7 @@ class ApiParse extends ApiBase { $oldid = $articleObj->getRevIdFetched(); } - $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $pageid ) ; + $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $popts, $pageid ) ; } } else { $titleObj = Title::newFromText( $title ); @@ -282,9 +282,10 @@ class ApiParse extends ApiBase { * @param $articleObj Article * @param $titleObj Title * @param $pageId Int + * @param $pots ParserOptions * @return ParserOutput */ - private function getParsedSectionOrText( $articleObj, $titleObj, $pageId = null ) { + private function getParsedSectionOrText( $articleObj, $titleObj, $popts, $pageId = null ) { global $wgParser; if ( $this->section !== false ) { -- 2.20.1