Index: trunk/extensions/Contest/specials/SpecialContestWelcome.php |
— | — | @@ -179,17 +179,18 @@ |
180 | 180 | $contestName .= '/' . $challengeId; |
181 | 181 | } |
182 | 182 | |
183 | | - $signupTitle = SpecialPage::getTitleFor( 'ContestSignup', $contestName ); |
| 183 | + $signupitle = SpecialPage::getTitleFor( 'ContestSignup', $contestName ); |
184 | 184 | |
185 | | -// if ( $this->getUser()->isLoggedIn() ) { |
186 | | - return $signupTitle->getLocalURL(); |
187 | | -// } |
188 | | -// else { |
189 | | -// return SpecialPage::getTitleFor( 'Userlogin' )->getLocalURL( array( |
190 | | -// //'type' => 'signup', |
191 | | -// 'returnto' => $signupTitle->getFullText() |
192 | | -// ) ); |
193 | | -// } |
| 185 | + if ( $this->getUser()->isLoggedIn() ) { |
| 186 | + return $signupitle->getLocalURL(); |
| 187 | + } |
| 188 | + else { |
| 189 | + return SpecialPage::getTitleFor( 'Userlogin' )->getLocalURL( array( |
| 190 | + //'type' => 'signup', |
| 191 | + 'returnto' => $signupTitle->getFullText(), |
| 192 | + 'campaign' => 'contests' |
| 193 | + ) ); |
| 194 | + } |
194 | 195 | } |
195 | 196 | |
196 | 197 | } |