X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FEditPage.php;h=2d5b9e20b585cf57020feb354d571d22afa507e2;hb=2e1ac38485b9c78890944413cba074474c06bd34;hp=6990934c1d0650268e06b3fd359788c54e1f5484;hpb=86c13ba3ad15f7ab4c567b30c2810fe36db102df;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index 6990934c1d..2d5b9e20b5 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -637,13 +637,6 @@ class EditPage { $this->context->getUser()->spreadAnyEditBlock(); } ); } - - $config = $this->context->getConfig(); - if ( $config->get( 'EnableBlockNoticeStats' ) ) { - $wiki = $config->get( 'DBname' ); - $statsd = MediaWikiServices::getInstance()->getStatsdDataFactory(); - $statsd->increment( 'BlockNotices.' . $wiki . '.WikitextEditor.shown' ); - } } $this->displayPermissionsError( $permErrors ); @@ -2616,7 +2609,8 @@ ERROR; LogEventsList::showLogExtract( $out, 'block', - MWNamespace::getCanonicalName( NS_USER ) . ':' . $block->getTarget(), + MediaWikiServices::getInstance()->getNamespaceInfo()-> + getCanonicalName( NS_USER ) . ':' . $block->getTarget(), '', [ 'lim' => 1, @@ -4458,7 +4452,9 @@ ERROR; protected function addPageProtectionWarningHeaders() { $out = $this->context->getOutput(); if ( $this->mTitle->isProtected( 'edit' ) && - MWNamespace::getRestrictionLevels( $this->mTitle->getNamespace() ) !== [ '' ] + MediaWikiServices::getInstance()->getNamespaceInfo()->getRestrictionLevels( + $this->mTitle->getNamespace() + ) !== [ '' ] ) { # Is the title semi-protected? if ( $this->mTitle->isSemiProtected() ) {