Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22371: LJSUP-12771: Update a counter of comment...

Committer: anazarov
LJSUP-12771: Update a counter of comments after adding a comment (for New S1 comments pages)
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2012-07-03 08:54:20 UTC (rev 22370)
+++ trunk/cgi-bin/weblib.pl	2012-07-03 09:08:31 UTC (rev 22371)
@@ -1520,6 +1520,8 @@
         my $remote_is_maintainer = ($remote && $remote->can_manage($ju)) ? 1 : 0;
 
         my $default_copyright = $remote ? ($remote->prop("default_copyright") || 'P') : 'P';
+        my $locale = LJ::Lang::current_language();
+        $locale = $locale eq 'debug'? $locale : LJ::lang_to_locale($locale);
 
         my $ljentry = LJ::Request->notes('ljentry') || ''; # url
         my %site = (
@@ -1544,6 +1546,7 @@
                 remoteJournalBase        => $remote && $remote->journal_base,
                 remoteUser               => $remote && $remote->user,
                 remoteLocale             => LJ::lang_to_locale( LJ::Lang::get_remote_lang() ),
+                locale                   => $locale,
                 pics_production          => LJ::is_enabled('pics_production'),
                 v                        => stc_0_modtime($now),
         );

Tags: anazarov, livejournal, nfokz, pl
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