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 };