(follow-up to some RequestContext revision) When Special:userlogin creates a new...
authorBrian Wolff <bawolff@users.mediawiki.org>
Tue, 28 Jun 2011 04:00:40 +0000 (04:00 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Tue, 28 Jun 2011 04:00:40 +0000 (04:00 +0000)
commit3b132646f62b496b73696b8aa8f347147b14c70b
treea2292d1764ac1b01980d56516787ab7ffdf4c620
parente63322565db23de969b756a7d2fbddd03f1f7944
(follow-up to some RequestContext revision) When Special:userlogin creates a new user, not only replace
$wgUser, but also do RequestContext::getMain()->setUser( $new_user );

Otherwise this causes a bug in the page immediatly after account creation where the
personal url's go to the wrong place, and the js wgUser variables are wrong.

I didn't add any release notes, since I'm tagging this for 1.18, and it was broken in 1.18,
so its not fixing anything between versions. (hopefully that's correct thing to do).
includes/specials/SpecialUserlogin.php