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

[livejournal] r19987: LJSUP-9653 (ljlang refactoring)

Committer: ailyin
LJSUP-9653 (ljlang refactoring)
U   trunk/cgi-bin/LJ/Lang.pm
Modified: trunk/cgi-bin/LJ/Lang.pm
===================================================================
--- trunk/cgi-bin/LJ/Lang.pm	2011-09-08 02:23:28 UTC (rev 19986)
+++ trunk/cgi-bin/LJ/Lang.pm	2011-09-08 02:29:52 UTC (rev 19987)
@@ -951,7 +951,7 @@
     my %existing_language =
         map { $_ => 1 } ( @LJ::LANGS, @LJ::LANGS_IN_PROGRESS, 'debug' );
 
-    if ( LJ::is_web_context() ) {
+    if ( LJ::is_web_context() && LJ::Request->is_inited ) {
         # 'uselang' get param goes first
         if ( my $uselang = LJ::Request->get_param('uselang') ) {
             if ( $existing_language{$uselang} ) {

Tags: 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