Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -95,6 +95,7 @@ |
96 | 96 | * (bug 29070) Add token to action=watch |
97 | 97 | * (bug 29221) Expose oldrevid in watchlist output |
98 | 98 | * (bug 29267) always give the servername for meta=siteinfo&siprop=dbrepllag |
| 99 | +* (bug 28897) rvparse doesn’t seem to work with rvsection |
99 | 100 | |
100 | 101 | === Languages updated in 1.19 === |
101 | 102 | |
Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -297,11 +297,11 @@ |
298 | 298 | } |
299 | 299 | |
300 | 300 | /** |
301 | | - * @param $articleObj Article |
302 | | - * @param $titleObj Title |
303 | | - * @param $popts ParserOptions |
304 | | - * @param $pageId Int |
305 | | - * @param $getWikitext Bool |
| 301 | + * @param $articleObj Article |
| 302 | + * @param $titleObj Title |
| 303 | + * @param $popts ParserOptions |
| 304 | + * @param $pageId Int |
| 305 | + * @param $getWikitext Bool |
306 | 306 | * @return ParserOutput |
307 | 307 | */ |
308 | 308 | private function getParsedSectionOrText( $articleObj, $titleObj, $popts, $pageId = null, $getWikitext = false ) { |
Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -482,10 +482,7 @@ |
483 | 483 | $text = $wgParser->preprocess( $text, $title, new ParserOptions() ); |
484 | 484 | } |
485 | 485 | if ( $this->parseContent ) { |
486 | | - $articleObj = new Article( $title ); |
487 | | - |
488 | | - $p_result = $articleObj->getParserOutput(); |
489 | | - $text = $p_result->getText(); |
| 486 | + $text = $wgParser->parse( $text, $title, new ParserOptions() )->getText(); |
490 | 487 | } |
491 | 488 | ApiResult::setContent( $vals, $text ); |
492 | 489 | } elseif ( $this->fld_content ) { |