Merge "Revert "Make UserNotLoggedIn redirect to login page""
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 15 Jul 2014 23:18:53 +0000 (23:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 15 Jul 2014 23:18:53 +0000 (23:18 +0000)
includes/exception/UserNotLoggedIn.php

index f7a56b5..9d89009 100644 (file)
@@ -62,20 +62,4 @@ class UserNotLoggedIn extends ErrorPageError {
        ) {
                parent::__construct( $titleMsg, $reasonMsg, $params );
        }
-
-       /**
-        * Redirect to Special:Userlogin
-        */
-       public function report() {
-               $context = RequestContext::getMain();
-
-               $output = $context->getOutput();
-               $output->redirect( SpecialPage::getTitleFor( 'Userlogin' )->getFullURL( array(
-                       // Return to this page when the user logs in
-                       'returnto' => $context->getTitle()->getText(),
-                       'returntoquery' => wfArrayToCgi( $context->getRequest()->getValues() )
-               ) ) );
-
-               $output->output();
-       }
 }