72 $reasonMsg =
'exception-nologin-text',
73 $titleMsg =
'exception-nologin',
76 parent::__construct( $titleMsg, $reasonMsg,
$params );
84 public function report( $action = self::SEND_OUTPUT ) {
88 parent::report( $action );
96 $output = $context->getOutput();
97 $query = $context->getRequest()->getValues();
99 unset( $query[
'title'] );
101 $output->redirect( SpecialPage::getTitleFor(
'Userlogin' )->getFullURL( [
103 'returnto' => $context->getTitle()->getFullText(),
105 'warning' => $this->
msg,
108 if ( $action === self::SEND_OUTPUT ) {
wfArrayToCgi( $array1, $array2=null, $prefix='')
This function takes one or two arrays as input, and returns a CGI-style string, e....
An error page which can definitely be safely rendered using the OutputPage.
static getValidErrorMessages()
Returns an array of all valid error messages.
msg( $key, $fallback,... $params)
Get a message from i18n.
Parent class for all special pages.
static getMain()
Get the RequestContext object associated with the main request.
Redirect a user to the login page.
report( $action=self::SEND_OUTPUT)
Redirect to Special:Userlogin if the specified message is compatible.
__construct( $reasonMsg='exception-nologin-text', $titleMsg='exception-nologin', $params=[])