Keep returnto, returntoquery on Special:CreateAccount redirect
authorMatthew Flaschen <mflaschen@wikimedia.org>
Wed, 16 Oct 2013 07:32:21 +0000 (03:32 -0400)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Wed, 16 Oct 2013 07:32:21 +0000 (03:32 -0400)
Bug: 55765
Change-Id: I1d05a1b91b2ac4097e09d11510d53fdfce1e0565

includes/SpecialPage.php

index 61630a9..72217fa 100644 (file)
@@ -1227,7 +1227,7 @@ class SpecialListBots extends SpecialRedirectToSpecial {
  */
 class SpecialCreateAccount extends SpecialRedirectToSpecial {
        function __construct() {
-               parent::__construct( 'CreateAccount', 'Userlogin', 'signup', array( 'uselang' ) );
+               parent::__construct( 'CreateAccount', 'Userlogin', 'signup', array( 'returnto', 'returntoquery', 'uselang' ) );
        }
 
        // No reason to hide this link on Special:Specialpages