From ccf7a92c968e5b1b527c12f657fb56996191a86d Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 15 Aug 2012 10:03:51 +0200 Subject: [PATCH] Pass the 'returntoquery' parameter when clicking on a language selector link. Also updated the check to pass the 'returnto' parameter to be consistent with I2714ba1c (56dbeaa). Change-Id: I009089c9e943952287cc5515515f6a28ca194b16 --- includes/specials/SpecialUserlogin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 0c72b76316..f0b15db25a 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -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(), -- 2.20.1