X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fuser%2FExternalUserNames.php;h=41facc707d958143cf891ce6d0a11d48d5e21ea4;hb=3020d27638add607e9d86622652221c3729faf87;hp=66674dca104f624ed033d41cffbe5fe6a7a53344;hpb=97402532d48de203925a850a4afa2d8f43e3dd9f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/user/ExternalUserNames.php b/includes/user/ExternalUserNames.php index 66674dca10..41facc707d 100644 --- a/includes/user/ExternalUserNames.php +++ b/includes/user/ExternalUserNames.php @@ -64,9 +64,11 @@ class ExternalUserNames { if ( $pos !== false ) { $iw = explode( ':', substr( $userName, 0, $pos ) ); $firstIw = array_shift( $iw ); - $interwikiLookup = MediaWikiServices::getInstance()->getInterwikiLookup(); + $services = MediaWikiServices::getInstance(); + $interwikiLookup = $services->getInterwikiLookup(); if ( $interwikiLookup->isValidInterwiki( $firstIw ) ) { - $title = MWNamespace::getCanonicalName( NS_USER ) . ':' . substr( $userName, $pos + 1 ); + $title = $services->getNamespaceInfo()->getCanonicalName( NS_USER ) . + ':' . substr( $userName, $pos + 1 ); if ( $iw ) { $title = implode( ':', $iw ) . ':' . $title; }