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 );
$oldid = $articleObj->getRevIdFetched();
}
- $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $pageid ) ;
+ $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $popts, $pageid ) ;
}
} else {
$titleObj = Title::newFromText( $title );
* @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 ) {