ApiVisualEditor: remove call to deprecated User::isIP

Bug: T281401
Change-Id: I913e1ecaeadb2b36227b2dd205869db5f9a07691
This commit is contained in:
DannyS712 2021-04-28 18:49:42 +00:00
parent d54b3ccb77
commit 67a03105e0

View file

@ -407,7 +407,7 @@ class ApiVisualEditor extends ApiBase {
// users, pretend like they don't exist at all. See T120883/T270453
$targetUserExists = false;
}
if ( !$targetUserExists && !User::isIP( $targetUsername ) ) {
if ( !$targetUserExists && !$this->userNameUtils->isIP( $targetUsername ) ) {
// User does not exist
$notices['userpage-userdoesnotexist'] = "<div class=\"mw-userpage-userdoesnotexist error\">\n" .
$this->msg( 'userpage-userdoesnotexist', wfEscapeWikiText( $targetUsername ) )