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
Merge "Simplify redirect linking in InfoAction"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialListgrouprights.php
diff --git
a/includes/specials/SpecialListgrouprights.php
b/includes/specials/SpecialListgrouprights.php
index
8802a38
..
1d10791
100644
(file)
--- a/
includes/specials/SpecialListgrouprights.php
+++ b/
includes/specials/SpecialListgrouprights.php
@@
-162,16
+162,17
@@
class SpecialListGroupRights extends SpecialPage {
);
$linkRenderer = $this->getLinkRenderer();
ksort( $namespaceProtection );
);
$linkRenderer = $this->getLinkRenderer();
ksort( $namespaceProtection );
+ $validNamespaces = MWNamespace::getValidNamespaces();
+ $contLang = MediaWikiServices::getInstance()->getContentLanguage();
foreach ( $namespaceProtection as $namespace => $rights ) {
foreach ( $namespaceProtection as $namespace => $rights ) {
- if ( !in_array( $namespace,
MWNamespace::getValidNamespaces()
) ) {
+ if ( !in_array( $namespace,
$validNamespaces
) ) {
continue;
}
if ( $namespace == NS_MAIN ) {
$namespaceText = $this->msg( 'blanknamespace' )->text();
} else {
continue;
}
if ( $namespace == NS_MAIN ) {
$namespaceText = $this->msg( 'blanknamespace' )->text();
} else {
- $namespaceText = MediaWikiServices::getInstance()->getContentLanguage()->
- convertNamespace( $namespace );
+ $namespaceText = $contLang->convertNamespace( $namespace );
}
$out->addHTML(
}
$out->addHTML(