mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-27 15:30:48 +00:00
Merge "Avoid using ContentHandler::getContentText()"
This commit is contained in:
commit
2d3067e347
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue