Index: branches/wmf/1.18wmf1/includes/specials/SpecialUserlogin.php |
— | — | @@ -564,6 +564,10 @@ |
565 | 565 | } else { |
566 | 566 | $wgAuth->updateUser( $u ); |
567 | 567 | $wgUser = $u; |
| 568 | + // This should set it for OutputPage and the Skin |
| 569 | + // which is needed or the personal links will be |
| 570 | + // wrong. |
| 571 | + RequestContext::getMain()->setUser( $u ); |
568 | 572 | |
569 | 573 | // Please reset throttle for successful logins, thanks! |
570 | 574 | if ( $throttleCount ) { |