41 parent::__construct(
'AuthenticationPopupSuccess' );
42 $this->skinFactory = $skinFactory;
46 if ( $this->
getRequest()->getRawVal(
'display' ) ===
'popup' ) {
50 $this->
getContext()->setSkin( $this->skinFactory->makeSkin(
'authentication-popup' ) );
56 $out->addModules(
'mediawiki.authenticationPopup.success' );
58 if ( $this->
getUser()->isNamed() ) {
59 $out->setPageTitleMsg( $this->
msg(
'loginsuccesstitle' ) );
62 $out->setPageTitleMsg( $this->
msg(
'exception-nologin' ) );
63 $out->addWikiMsg(
'exception-nologin-text' );
65 $out->addWikiMsg(
'userlogin-authpopup-closeme' );
wfEscapeWikiText( $input)
Escapes the given text so that it may be output using addWikiText() without any linking,...
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getUser()
Shortcut to get the User executing this instance.
getContext()
Gets the context this SpecialPage is executed in.
getRequest()
Get the WebRequest being used for this instance.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getOutput()
Get the OutputPage being used for this instance.
getName()
Get the canonical, unlocalized name of this special page without namespace.
Shortcut to construct a special page which is unlisted by default.
Factory class to create Skin objects.