mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-12 00:38:42 +00:00
Merge "Avoid using WikiPage::factory()"
This commit is contained in:
commit
9b150fc464
|
@ -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() : "";
|
||||
|
|
Loading…
Reference in a new issue