X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialStatistics.php;h=eff8889f4345d4c394fb0bb8c348e39d5bfa7606;hb=3bb3c8b0ae092b2e667f6f33abfc98f9c205d53c;hp=d5e14d299b623cf42c67d3cfad30803dff0ceab5;hpb=15f6eff90c305d405fe4331c8a8dc8caa842e5b3;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(); }