63 $pos = strpos( $userName,
'>' );
64 if ( $pos !==
false ) {
65 $iw = explode(
':', substr( $userName, 0, $pos ) );
66 $firstIw = array_shift( $iw );
67 $services = MediaWikiServices::getInstance();
68 $interwikiLookup = $services->getInterwikiLookup();
69 if ( $interwikiLookup->isValidInterwiki( $firstIw ) ) {
70 $title = $services->getNamespaceInfo()->getCanonicalName(
NS_USER ) .
71 ':' . substr( $userName, $pos + 1 );
79 return SpecialPage::getTitleFor(
'Contributions', $userName );
98 if ( !User::isUsableName( $name ) ) {
102 if ( $this->assignKnownUsers ) {
103 if ( User::idFromName( $name ) ) {
108 if ( !isset( $this->triedCreations[$name] ) ) {
109 $this->triedCreations[$name] =
true;
110 if ( !Hooks::run(
'ImportHandleUnknownUser', [ $name ] ) &&
111 User::idFromName( $name, User::READ_LATEST )