Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -97,7 +97,7 @@ |
98 | 98 | if ( $titleObj->getLatestRevID() === intval( $oldid ) ) { |
99 | 99 | $articleObj = new Article( $titleObj ); |
100 | 100 | |
101 | | - $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $pageid ) ; |
| 101 | + $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $popts, $pageid ) ; |
102 | 102 | |
103 | 103 | } else { |
104 | 104 | $text = $rev->getText( Revision::FOR_THIS_USER ); |
— | — | @@ -147,7 +147,7 @@ |
148 | 148 | $oldid = $articleObj->getRevIdFetched(); |
149 | 149 | } |
150 | 150 | |
151 | | - $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $pageid ) ; |
| 151 | + $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $popts, $pageid ) ; |
152 | 152 | } |
153 | 153 | } else { |
154 | 154 | $titleObj = Title::newFromText( $title ); |
— | — | @@ -282,9 +282,10 @@ |
283 | 283 | * @param $articleObj Article |
284 | 284 | * @param $titleObj Title |
285 | 285 | * @param $pageId Int |
| 286 | + * @param $pots ParserOptions |
286 | 287 | * @return ParserOutput |
287 | 288 | */ |
288 | | - private function getParsedSectionOrText( $articleObj, $titleObj, $pageId = null ) { |
| 289 | + private function getParsedSectionOrText( $articleObj, $titleObj, $popts, $pageId = null ) { |
289 | 290 | global $wgParser; |
290 | 291 | |
291 | 292 | if ( $this->section !== false ) { |