madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12497: LJSUP-13301: Main page optimization

Committer: sbelyaev
LJSUP-13301: Main page optimization
U   trunk/cgi-bin/LJ/Nav.pm
Modified: trunk/cgi-bin/LJ/Nav.pm
===================================================================
--- trunk/cgi-bin/LJ/Nav.pm	2012-08-20 10:11:40 UTC (rev 12496)
+++ trunk/cgi-bin/LJ/Nav.pm	2012-08-20 12:02:59 UTC (rev 12497)
@@ -25,7 +25,8 @@
     my $memcache_key;
     if ($remote) {
         my $journalid = $remote->userid; 
-        my $bl = LJ::Lang::get_lang($remote->prop('browselang'));
+        my $bl = LJ::Lang::get_lang($remote->prop('browselang')) || 
+                       $LJ::DEFAULT_LANG;
 
         $memcache_key = "navbar:$scheme:$journalid:$bl" . $LJ::CURRENT_VERSION;
    

Tags: ljcom, madeon, pm, sbelyaev
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