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
Mass conversion to NamespaceInfo
[lhc/web/wiklou.git]
/
includes
/
title
/
NaiveImportTitleFactory.php
diff --git
a/includes/title/NaiveImportTitleFactory.php
b/includes/title/NaiveImportTitleFactory.php
index
4da9395
..
1a6ba72
100644
(file)
--- a/
includes/title/NaiveImportTitleFactory.php
+++ b/
includes/title/NaiveImportTitleFactory.php
@@
-46,7
+46,10
@@
class NaiveImportTitleFactory implements ImportTitleFactory {
// For built-in namespaces (0 <= ID < 100), we try to find a local NS with
// the same namespace ID
// For built-in namespaces (0 <= ID < 100), we try to find a local NS with
// the same namespace ID
- if ( $foreignNs < 100 && MWNamespace::exists( $foreignNs ) ) {
+ if (
+ $foreignNs < 100 &&
+ MediaWikiServices::getInstance()->getNamespaceInfo()->exists( $foreignNs )
+ ) {
return Title::makeTitleSafe( $foreignNs, $foreignTitle->getText() );
}
}
return Title::makeTitleSafe( $foreignNs, $foreignTitle->getText() );
}
}