63 parent::__construct( $name );
64 $this->errorMessage =
$errorMessage ?:
'disabledspecialpage-disabled';
71 $error = Html::rawElement(
'div', [
73 ], $this->
msg( $this->errorMessage )->parseAsBlock() );
80class_alias( DisabledSpecialPage::class,
'DisabledSpecialPage' );
This class is a drop-in replacement for other special pages that need to be manually disabled.
__construct( $name, $errorMessage=null)
static getCallback( $name, $errorMessage=null)
Create a callback suitable for use in $wgSpecialPages.
execute( $subPage)
Default execute method Checks user permissions.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getOutput()
Get the OutputPage being used for this instance.
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...
Shortcut to construct a special page which is unlisted by default.