X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialStatistics.php;h=eff8889f4345d4c394fb0bb8c348e39d5bfa7606;hb=c5991f614ff3183ca4272ea33b08ec87e779a786;hp=d5e14d299b623cf42c67d3cfad30803dff0ceab5;hpb=8eb6cf585c5fb3d7dd5f014bac27518959512b98;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index d5e14d299b..eff8889f43 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -21,6 +21,8 @@ * @ingroup SpecialPage */ +use MediaWiki\MediaWikiServices; + /** * Special page lists various statistics, including the contents of * `site_stats`, plus page view details if enabled @@ -207,8 +209,8 @@ class SpecialStatistics extends SpecialPage { } $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(); }