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

[livejournal] r20159: LJSUP-9792 (generalize m.livejournal.com...

Committer: ailyin
LJSUP-9792 (generalize m.livejournal.com's router/controller/response framework)
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2011-09-28 09:18:24 UTC (rev 20158)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2011-09-28 10:14:46 UTC (rev 20159)
@@ -346,11 +346,11 @@
             my @args = split ( m{/}, LJ::Request->uri );
             shift @args if @args;
 
+            LJ::Lang::current_language(undef);
+
             my $response =
                 $controller->process(\@args) || $controller->default_response;
 
-            LJ::Lang::current_language(undef);
-
             # processing result of controller
             my $result = eval { $response->output };
 

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