sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r20426: OPSC-399: Code is a little bit refactore...

Committer: vtroitsky
OPSC-399: Code is a little bit refactored
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2011-10-25 09:18:44 UTC (rev 20425)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2011-10-25 09:49:53 UTC (rev 20426)
@@ -1079,10 +1079,7 @@
             return $view if defined $view;
         }
         elsif ( $func eq 'api' || LJ::Request->uri =~ /^\/__api_endpoint.*$/) {
-            Apache::LiveJournal::Interface::Api->load;
-            LJ::Request->handler("perl-script");
-            LJ::Request->push_handlers(PerlHandler => \&Apache::LiveJournal::Interface::Api::handler);
-            return LJ::Request::OK;
+            return LJ::URI->api_handler();
         }
         elsif ( $func eq "games" ) {
             LJ::get_remote();

Tags: livejournal, pm, sunnyman, vtroitsky
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