Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r22086: LJSUP-12371 (Posible bug with language o...

Committer: ailyin
LJSUP-12371 (Posible bug with language of notification after completed migration)
U   trunk/cgi-bin/LJ/Lang.pm
Modified: trunk/cgi-bin/LJ/Lang.pm
===================================================================
--- trunk/cgi-bin/LJ/Lang.pm	2012-05-29 07:18:28 UTC (rev 22085)
+++ trunk/cgi-bin/LJ/Lang.pm	2012-05-29 07:19:27 UTC (rev 22086)
@@ -969,6 +969,13 @@
 my ( $current_language, $guessed_language, $language_scope );
 
 sub decide_language {
+    unless ( $LJ::REQ_GLOBAL{'lj_lang_reset'} ) {
+        $LJ::REQ_GLOBAL{'lj_lang_reset'} = 1;
+        undef $current_language;
+        undef $guessed_language;
+        undef $language_scope;
+    }
+
     return $guessed_language if $guessed_language;
 
     my %existing_language =
@@ -1047,6 +1054,13 @@
 sub current_language {
     my @args = @_;
 
+    unless ( $LJ::REQ_GLOBAL{'lj_lang_reset'} ) {
+        $LJ::REQ_GLOBAL{'lj_lang_reset'} = 1;
+        undef $current_language;
+        undef $guessed_language;
+        undef $language_scope;
+    }
+
     my $ret = $current_language || decide_language();
 
     if (@args) {

Tags: ailyin, andy, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments