From: Alexandre Emsenhuber Date: Wed, 15 Aug 2012 08:03:51 +0000 (+0200) Subject: Pass the 'returntoquery' parameter when clicking on a language selector link. X-Git-Tag: 1.31.0-rc.0~22728 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=ccf7a92c968e5b1b527c12f657fb56996191a86d;p=lhc%2Fweb%2Fwiklou.git 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 --- 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(),