17 parent::__construct(
'EditRecovery' );
29 parent::execute( $subPage );
34 if ( !$this->userOptionsLookup->getOption( $this->getUser(),
'editrecovery' ) ) {
35 if ( !$this->
getUser()->isNamed() ) {
37 $this->
getOutput()->showErrorPage(
'editrecovery',
'edit-recovery-special-user-unnamed' );
40 $this->
getOutput()->showErrorPage(
'editrecovery',
'edit-recovery-special-user-not-enabled' );
45 $this->
getOutput()->addModuleStyles(
'mediawiki.special.editrecovery.styles' );
46 $this->
getOutput()->addModules(
'mediawiki.special.editrecovery' );
47 $this->
getOutput()->addModuleStyles(
'mediawiki.codex.messagebox.styles' );
48 $noJs = Html::errorBox(
49 $this->
msg(
'edit-recovery-nojs-placeholder' )->parse(),
51 'mw-special-EditRecovery-nojs-notice'
53 $placeholder = Html::rawElement(
'div', [
'class' =>
'mw-special-EditRecovery-app' ], $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.