Bug 40668 - "Return to Array." when logging in
authorReedy <reedy@wikimedia.org>
Mon, 1 Oct 2012 20:35:47 +0000 (21:35 +0100)
committerReedy <reedy@wikimedia.org>
Mon, 1 Oct 2012 20:35:47 +0000 (21:35 +0100)
Change-Id: I847684cdc474d0694bf4fa5eddaa0d0b19e7be4e

includes/specials/SpecialUserlogin.php

index 7e66797..b7d01c8 100644 (file)
@@ -997,7 +997,7 @@ class LoginForm extends SpecialPage {
                        $redirectUrl = $returnToTitle->getFullURL( $returnToQuery, false, $proto );
                        $this->getOutput()->redirect( $redirectUrl );
                } else {
-                       $this->getOutput()->addReturnTo( $returnToTitle, $returnToQuery, $options );
+                       $this->getOutput()->addReturnTo( $returnToTitle, $returnToQuery, null, $options );
                }
        }