diff --git a/includes/TitleBlacklist.php b/includes/TitleBlacklist.php index d0fc01e7..6de8eee0 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() : "";