Merge "Avoid using WikiPage::factory()"

This commit is contained in:
jenkins-bot 2021-12-18 15:52:32 +00:00 committed by Gerrit Code Review
commit 9b150fc464

View file

@ -135,7 +135,7 @@ class TitleBlacklist {
return '';
}
} else {
$page = WikiPage::factory( $title );
$page = MediaWikiServices::getInstance()->getWikiPageFactory()->newFromTitle( $title );
if ( $page->exists() ) {
$content = $page->getContent();
return ( $content instanceof TextContent ) ? $content->getText() : "";