vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r16172: LJSUP-5445: fix using LJ::Request class

Committer: vsukhanov
LJSUP-5445: fix using LJ::Request class
U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2010-01-29 09:19:24 UTC (rev 16171)
+++ trunk/cgi-bin/ljlib.pl	2010-01-29 09:20:40 UTC (rev 16172)
@@ -2948,7 +2948,7 @@
         return $BML::COOKIE{'fake_ip'} if LJ::is_web_context() && $BML::COOKIE{'fake_ip'};
     }
     eval {
-        $ip = LJ::Request::connection()->remote_ip;
+        $ip = LJ::Request->remote_ip;
     };
     return $ip || $ENV{'FAKE_IP'};
 }

Tags: livejournal, pl, vadvs
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