X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialStatistics.php;h=83153ae01d8869ebc9713d04e08f89bcb7e10a71;hb=23daef5c1839f5c7531c067cce763d1dabd38277;hp=d5e14d299b623cf42c67d3cfad30803dff0ceab5;hpb=20670b2ef91c3afbfacdd0a881648a27be0d282d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index d5e14d299b..83153ae01d 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 @@ -45,7 +47,6 @@ class SpecialStatistics extends SpecialPage { $this->total = SiteStats::pages(); $this->users = SiteStats::users(); $this->activeUsers = SiteStats::activeUsers(); - $this->hook = ''; $text = Xml::openElement( 'table', [ 'class' => 'wikitable mw-statistics-table' ] ); @@ -207,8 +208,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(); }