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