63 parent::__construct( $name );
64 $this->errorMessage =
$errorMessage ?:
'disabledspecialpage-disabled';
71 $this->
getOutput()->addModuleStyles(
'mediawiki.codex.messagebox.styles' );
72 $this->
getOutput()->addHTML( Html::errorBox(
73 $this->
msg( $this->errorMessage )->parse()
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.
Message string $errorMessage
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 By default the message key is the canonical name of...
Shortcut to construct a special page which is unlisted by default.