15 private $userOptionsLookup;
18 parent::__construct(
'EditRecovery' );
19 $this->userOptionsLookup = $userOptionsLookup;
30 parent::execute( $subPage );
35 if ( !$this->userOptionsLookup->getOption( $this->getUser(),
'editrecovery' ) ) {
36 if ( !$this->
getUser()->isNamed() ) {
38 $this->
getOutput()->showErrorPage(
'editrecovery',
'edit-recovery-special-user-unnamed' );
41 $this->
getOutput()->showErrorPage(
'editrecovery',
'edit-recovery-special-user-not-enabled' );
46 $this->
getOutput()->addModuleStyles(
'mediawiki.special.editrecovery.styles' );
47 $this->
getOutput()->addModules(
'mediawiki.special.editrecovery' );
50 [
'class' =>
'error mw-EditRecovery-special-nojs-notice' ],
51 $this->
msg(
'edit-recovery-nojs-placeholder' )
53 $placeholder = Html::rawElement(
'div', [
'class' =>
'mw-EditRecovery-special' ], $noJs );
54 $this->
getOutput()->addHTML( $placeholder );
Parent class for all special pages.
getUser()
Shortcut to get the User executing this instance.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getOutput()
Get the OutputPage being used for this instance.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.