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, $popts, $pageid ) ; |
| 101 | + $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $text, $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, $popts, $pageid ) ; |
| 151 | + $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $text, $popts, $pageid ) ; |
152 | 152 | } |
153 | 153 | } else { |
154 | 154 | $titleObj = Title::newFromText( $title ); |
— | — | @@ -285,10 +285,11 @@ |
286 | 286 | * @param $articleObj Article |
287 | 287 | * @param $titleObj Title |
288 | 288 | * @param $pageId Int |
| 289 | + * @param $text String |
289 | 290 | * @param $popts ParserOptions |
290 | 291 | * @return ParserOutput |
291 | 292 | */ |
292 | | - private function getParsedSectionOrText( $articleObj, $titleObj, $popts, $pageId = null ) { |
| 293 | + private function getParsedSectionOrText( $articleObj, $titleObj, $text, $popts, $pageId = null ) { |
293 | 294 | global $wgParser; |
294 | 295 | |
295 | 296 | if ( $this->section !== false ) { |