From: Roan Kattouw Date: Tue, 27 Sep 2011 19:21:53 +0000 (+0000) Subject: (bug 31191) Followup to r90934: do this in the successful login code path too. The... X-Git-Tag: 1.31.0-rc.0~27398 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=12490b7ae3e31192697e85c60388a25223ede98e;p=lhc%2Fweb%2Fwiklou.git (bug 31191) Followup to r90934: do this in the successful login code path too. The bug didn't surface in most cases because the user is redirected immediately after a successful login, except when CentralAuth stops that from happening. --- diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 73bdd3c698..8ef0d1dd34 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -569,6 +569,10 @@ class LoginForm extends SpecialPage { } else { $wgAuth->updateUser( $u ); $wgUser = $u; + // This should set it for OutputPage and the Skin + // which is needed or the personal links will be + // wrong. + RequestContext::getMain()->setUser( $u ); // Please reset throttle for successful logins, thanks! if ( $throttleCount ) {