X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialStatistics.php;h=eff8889f4345d4c394fb0bb8c348e39d5bfa7606;hb=616525021b3691e30a980a42b837b7ad44ecfd09;hp=146e6e77deaaf9f0d5cdfd16886bea18f4549957;hpb=2224e31507249e2ed86eae5f0beac731ee8a921c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 146e6e77de..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 @@ -170,7 +172,7 @@ class SpecialStatistics extends SpecialPage { Xml::closeElement( 'tr' ) . $this->formatRow( $this->msg( 'statistics-users' )->parse() . ' ' . $this->getLinkRenderer()->makeKnownLink( - SpecialPage::getTitleFor( 'ListUsers' ), + SpecialPage::getTitleFor( 'Listusers' ), $this->msg( 'listgrouprights-members' )->text() ), $this->getLanguage()->formatNum( $this->users ), @@ -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(); }