Pass the 'returntoquery' parameter when clicking on a language selector link.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 15 Aug 2012 08:03:51 +0000 (10:03 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 15 Aug 2012 08:03:51 +0000 (10:03 +0200)
Also updated the check to pass the 'returnto' parameter
to be consistent with I2714ba1c (56dbeaa).

Change-Id: I009089c9e943952287cc5515515f6a28ca194b16

includes/specials/SpecialUserlogin.php

index 0c72b76..f0b15db 100644 (file)
@@ -1273,8 +1273,9 @@ class LoginForm extends SpecialPage {
                if( $this->mType == 'signup' ) {
                        $attr['type'] = 'signup';
                }
-               if( $this->mReturnTo ) {
+               if( $this->mReturnTo !== '' ) {
                        $attr['returnto'] = $this->mReturnTo;
+                       $attr['returntoquery'] = $this->mReturnToQuery;
                }
                return Linker::linkKnown(
                        $this->getTitle(),