X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fauth%2FAuthManager.php;h=e03c5901bfd038263064e5209ef33257979d9c01;hp=5915d35c96985f9dfa5b236e1db88cd5bb09d5b2;hb=04d1aa3033f40a38d721f7f0e88b5bac440d2869;hpb=11488c2d7779117c56cfd6af96f99b5d0180949c diff --git a/includes/auth/AuthManager.php b/includes/auth/AuthManager.php index 5915d35c96..e03c5901bf 100644 --- a/includes/auth/AuthManager.php +++ b/includes/auth/AuthManager.php @@ -24,6 +24,7 @@ namespace MediaWiki\Auth; use Config; +use MediaWiki\Block\DatabaseBlock; use MediaWiki\MediaWikiServices; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerInterface; @@ -1010,7 +1011,7 @@ class AuthManager implements LoggerAwareInterface { $block->getByName() ]; - if ( $block->getType() === \Block::TYPE_RANGE ) { + if ( $block->getType() === DatabaseBlock::TYPE_RANGE ) { $errorMessage = 'cantcreateaccount-range-text'; $errorParams[] = $this->getRequest()->getIP(); } else {