X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fauth%2FCheckBlocksSecondaryAuthenticationProvider.php;h=92b06a4e7ddf151013cec641b03c5b890691f215;hb=eb70451cec6409526c8feaedf55700f51e10ffe7;hp=3e260974b68be11cfb6f93edefa7bea8beed1d84;hpb=a826aa478bf076a46396eb2bb6c4d074bc324555;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/CheckBlocksSecondaryAuthenticationProvider.php b/includes/auth/CheckBlocksSecondaryAuthenticationProvider.php index 3e260974b6..92b06a4e7d 100644 --- a/includes/auth/CheckBlocksSecondaryAuthenticationProvider.php +++ b/includes/auth/CheckBlocksSecondaryAuthenticationProvider.php @@ -22,6 +22,7 @@ namespace MediaWiki\Auth; use Config; +use MediaWiki\Block\DatabaseBlock; use StatusValue; /** @@ -95,7 +96,7 @@ class CheckBlocksSecondaryAuthenticationProvider extends AbstractSecondaryAuthen $block->getByName() ]; - if ( $block->getType() === \Block::TYPE_RANGE ) { + if ( $block->getType() === DatabaseBlock::TYPE_RANGE ) { $errorMessage = 'cantcreateaccount-range-text'; $errorParams[] = $this->manager->getRequest()->getIP(); } else {