dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Services: Convert PasswordReset's static to a const now HHVM is gone
[lhc/web/wiklou.git]
/
includes
/
user
/
ExternalUserNames.php
diff --git
a/includes/user/ExternalUserNames.php
b/includes/user/ExternalUserNames.php
index
66674dc
..
41facc7
100644
(file)
--- 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 );
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 ) ) {
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;
}
if ( $iw ) {
$title = implode( ':', $iw ) . ':' . $title;
}