madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22604: LJSUP-13199: Ability to use JSON RPC fro...

Committer: sbelyaev
LJSUP-13199: Ability to use JSON RPC from l-stat
U   trunk/cgi-bin/LJ/JSON/RPC.pm
Modified: trunk/cgi-bin/LJ/JSON/RPC.pm
===================================================================
--- trunk/cgi-bin/LJ/JSON/RPC.pm	2012-08-08 12:59:46 UTC (rev 22603)
+++ trunk/cgi-bin/LJ/JSON/RPC.pm	2012-08-08 13:22:27 UTC (rev 22604)
@@ -106,7 +106,7 @@
 
         $resp_data = $item->response($result);
         if ($self->{'callback'} && !$resp_data->{'error'}) {
-            $headers = __get_headers($result);
+            $headers = $self->__get_headers($result);
         }
     }
 
@@ -119,6 +119,7 @@
 
 sub __get_headers {
     my ($self, $result) = @_;
+
     if (LJ::Request->hostname eq 'stat.' . $LJ::DOMAIN) {
         if ($result->{'properties'}) {
             my $properties = $result->{'properties'};

Tags: livejournal, madeon, pm, sbelyaev
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