Merge "Avoid using ContentHandler::getContentText()"

This commit is contained in:
jenkins-bot 2021-10-12 18:18:56 +00:00 committed by Gerrit Code Review
commit 2d3067e347

View file

@ -137,7 +137,8 @@ class TitleBlacklist {
} else {
$page = WikiPage::factory( $title );
if ( $page->exists() ) {
return ContentHandler::getContentText( $page->getContent() );
$content = $page->getContent();
return ( $content instanceof TextContent ) ? $content->getText() : "";
}
}
} elseif ( $source['type'] == 'url' && count( $source ) >= 2 ) {