Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -926,7 +926,9 @@ |
927 | 927 | global $wgOut; |
928 | 928 | |
929 | 929 | $titleObj = SpecialPage::getTitleFor( 'Userlogin' ); |
930 | | - $check = $titleObj->getFullURL( 'wpCookieCheck='.$type ); |
| 930 | + $query = array( 'wpCookieCheck' => $type ); |
| 931 | + if ( $this->mReturnTo ) $query['returnto'] = $this->mReturnTo; |
| 932 | + $check = $titleObj->getFullURL( $query ); |
931 | 933 | |
932 | 934 | return $wgOut->redirect( $check ); |
933 | 935 | } |