diff --git a/includes/TitleBlacklist.php b/includes/TitleBlacklist.php index 987635c4..79e5a4fc 100644 --- a/includes/TitleBlacklist.php +++ b/includes/TitleBlacklist.php @@ -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() : "";