Skip to content

Commit

Permalink
Merge pull request #21 from refeed/fix_deprecated_gettext_method
Browse files Browse the repository at this point in the history
WikilogUtils: Replace WikiPage::getText() with getContent()
  • Loading branch information
vitalif committed Dec 27, 2017
2 parents 04cc110 + 97d1e06 commit 8f2df05
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion WikilogUtils.php
Expand Up @@ -210,7 +210,16 @@ public static function parsedArticle( Title $title, $feed = false ) {
$parser->startExternalParse( $title, $parserOpt, Parser::OT_HTML );

# Parse article.
$arttext = $article->getText();
$articleContent = $article->getContent();
if ( !($articleContent instanceof TextContent) ){
# Restore default behavior.
if ( $feed ) {
WikilogParser::enableFeedParsing( $saveFeedParse );
WikilogParser::expandLocalUrls( $saveExpUrls );
}
return array( $article, '' );
}
$arttext = $articleContent->getNativeData();
$parserOutput = $parser->parse( $arttext, $title, $parserOpt );

# Save in parser cache.
Expand Down

0 comments on commit 8f2df05

Please sign in to comment.