mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
ApiVisualEditor: remove call to deprecated User::isIP
Bug: T281401 Change-Id: I913e1ecaeadb2b36227b2dd205869db5f9a07691
This commit is contained in:
parent
d54b3ccb77
commit
67a03105e0
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in a new issue