r32826 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32825‎ | r32826 | r32827 >
Date:20:01, 5 April 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* (bug 13463) Login successful page doesn't use user's preferred interface language
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialUserlogin.php
@@ -457,6 +457,11 @@
458458 $wgUser->setCookies();
459459
460460 if( $this->hasSessionCookie() ) {
 461+ /* Replace the language object to provide user interface in correct
 462+ * language immediately on this first page load.
 463+ */
 464+ global $wgLang;
 465+ $wgLang = Language::factory( $wgUser->getOption( 'language' ) );
461466 return $this->successfulLogin( wfMsg( 'loginsuccess', $wgUser->getName() ) );
462467 } else {
463468 return $this->cookieRedirectCheck( 'login' );
Index: trunk/phase3/RELEASE-NOTES
@@ -152,6 +152,7 @@
153153 * (bug 13441) Allow Special:Recentchanges to show bots only
154154 * (bug 13431) Show true message source in Special:Allmessages&ot=php / xml
155155 * (bug 13616) Replace underscores in search terms by spaces
 156+* (bug 13463) Login successful page doesn't use user's preferred interface language
156157
157158 === API changes in 1.13 ===
158159

Status & tagging log