Skip to content

Commit

Permalink
WikilogUtils: Replace WikiPage::getText() with getContent()
Browse files Browse the repository at this point in the history
Replace `WikiPage::getText()` with
`WikiPage::getContent()->getNativeData()` in
`WikilogUtils.php`, since `WikiPage::getText()` had been removed
from `WikiPage`.

Bug: T179532
  • Loading branch information
refeed committed Dec 23, 2017
1 parent 04cc110 commit 11b442b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WikilogUtils.php
Expand Up @@ -210,7 +210,8 @@ public static function parsedArticle( Title $title, $feed = false ) {
$parser->startExternalParse( $title, $parserOpt, Parser::OT_HTML );

# Parse article.
$arttext = $article->getText();
$articleContent = $article->getContent();
$arttext = $articleContent instanceof TextContent ? $articleContent->getNativeData() : false;
$parserOutput = $parser->parse( $arttext, $title, $parserOpt );

# Save in parser cache.
Expand Down

0 comments on commit 11b442b

Please sign in to comment.