(bug 31191) Followup to r90934: do this in the successful login code path too. The...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 27 Sep 2011 19:21:53 +0000 (19:21 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 27 Sep 2011 19:21:53 +0000 (19:21 +0000)
includes/specials/SpecialUserlogin.php

index 73bdd3c..8ef0d1d 100644 (file)
@@ -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 ) {