* @ingroup SpecialPage
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Special page lists various statistics, including the contents of
* `site_stats`, plus page view details if enabled
}
$msg = $this->msg( 'grouppage-' . $groupname )->inContentLanguage();
if ( $msg->isBlank() ) {
- $grouppageLocalized = MWNamespace::getCanonicalName( NS_PROJECT ) .
- ':' . $groupname;
+ $grouppageLocalized = MediaWikiServices::getInstance()->getNamespaceInfo()->
+ getCanonicalName( NS_PROJECT ) . ':' . $groupname;
} else {
$grouppageLocalized = $msg->text();
}