From: Sam Reed Date: Sat, 1 Jan 2011 23:06:04 +0000 (+0000) Subject: Add missing $popts parameter, and pass it from r79455 X-Git-Tag: 1.31.0-rc.0~32904 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=03ada62815331a42427f0cf2da17e335dcd2b0b6;p=lhc%2Fweb%2Fwiklou.git Add missing $popts parameter, and pass it from r79455 --- 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 ) {