MediaWiki REL1_34
UserBlockedError.php
Go to the documentation of this file.
1<?php
22
30 public function __construct( AbstractBlock $block ) {
31 // @todo FIXME: Implement a more proper way to get context here.
32 $params = $block->getPermissionsError( RequestContext::getMain() );
33 parent::__construct( 'blockedtitle', array_shift( $params ), $params );
34 }
35}
An error page which can definitely be safely rendered using the OutputPage.
getPermissionsError(IContextSource $context)
Get the key and parameters for the corresponding error message.
Show an error when the user tries to do something whilst blocked.
__construct(AbstractBlock $block)