X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialListGroupRights.php;h=7f00311ca86dcbf8985e2590a3ffb515901e039c;hp=1d10791363f0b991e3327f911f1a80dcec3ee475;hb=bd5a37aacf600bdd5f3a6e7998f92bd1d9326a8a;hpb=89b0d88c386393eb42f6a5c086928031db9459a7
diff --git a/includes/specials/SpecialListGroupRights.php b/includes/specials/SpecialListGroupRights.php
index 1d10791363..7f00311ca8 100644
--- a/includes/specials/SpecialListGroupRights.php
+++ b/includes/specials/SpecialListGroupRights.php
@@ -45,6 +45,7 @@ class SpecialListGroupRights extends SpecialPage {
$out = $this->getOutput();
$out->addModuleStyles( 'mediawiki.special' );
+ $this->addHelpLink( 'Help:User_rights_and_groups' );
$out->wrapWikiMsg( "
\n$1\n
", 'listgrouprights-key' );
@@ -84,7 +85,8 @@ class SpecialListGroupRights extends SpecialPage {
$groupnameLocalized = UserGroupMembership::getGroupName( $groupname );
$grouppageLocalizedTitle = UserGroupMembership::getGroupPage( $groupname )
- ?: Title::newFromText( MWNamespace::getCanonicalName( NS_PROJECT ) . ':' . $groupname );
+ ?: Title::newFromText( MediaWikiServices::getInstance()->getNamespaceInfo()->
+ getCanonicalName( NS_PROJECT ) . ':' . $groupname );
if ( $group == '*' || !$grouppageLocalizedTitle ) {
// Do not make a link for the generic * group or group with invalid group page
@@ -162,7 +164,8 @@ class SpecialListGroupRights extends SpecialPage {
);
$linkRenderer = $this->getLinkRenderer();
ksort( $namespaceProtection );
- $validNamespaces = MWNamespace::getValidNamespaces();
+ $validNamespaces =
+ MediaWikiServices::getInstance()->getNamespaceInfo()->getValidNamespaces();
$contLang = MediaWikiServices::getInstance()->getContentLanguage();
foreach ( $namespaceProtection as $namespace => $rights ) {
if ( !in_array( $namespace, $validNamespaces ) ) {