* @ingroup SpecialPage
*/
+use MediaWiki\MediaWikiServices;
+
/**
* This special page lists all defined user groups and the associated rights.
* See also @ref $wgGroupPermissions.
}
private function outputNamespaceProtectionInfo() {
- global $wgContLang;
$out = $this->getOutput();
$namespaceProtection = $this->getConfig()->get( 'NamespaceProtection' );
if ( $namespace == NS_MAIN ) {
$namespaceText = $this->msg( 'blanknamespace' )->text();
} else {
- $namespaceText = $wgContLang->convertNamespace( $namespace );
+ $namespaceText = MediaWikiServices::getInstance()->getContentLanguage()->
+ convertNamespace( $namespace );
}
$out->addHTML(