X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fexception%2FUserBlockedError.php;h=9746c2bf457c04958cb8d451ab885182343be3b1;hp=9d19f8b63c1df310a36a845c6cd67e209504681a;hb=a9164f143a59a8d957a1d7f205715ac57fff3c8c;hpb=ea484007509b0caa7190a8683d8ea78d8fdf97e4 diff --git a/includes/exception/UserBlockedError.php b/includes/exception/UserBlockedError.php index 9d19f8b63c..9746c2bf45 100644 --- a/includes/exception/UserBlockedError.php +++ b/includes/exception/UserBlockedError.php @@ -18,6 +18,8 @@ * @file */ +use MediaWiki\Block\AbstractBlock; + /** * Show an error when the user tries to do something whilst blocked. * @@ -25,7 +27,7 @@ * @ingroup Exception */ class UserBlockedError extends ErrorPageError { - public function __construct( Block $block ) { + public function __construct( AbstractBlock $block ) { // @todo FIXME: Implement a more proper way to get context here. $params = $block->getPermissionsError( RequestContext::getMain() ); parent::__construct( 'blockedtitle', array_shift( $params ), $params );