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

[livejournal] r16314: LJSUP-5576 (make fotobilder work on cent...

Committer: ailyin
LJSUP-5576 (make fotobilder work on centos/apache2)

U   trunk/cgi-bin/LJ/FBInterface.pm
U   trunk/cgi-bin/LJ/Request/Apache.pm
U   trunk/cgi-bin/LJ/Request/Apache2.pm
Modified: trunk/cgi-bin/LJ/FBInterface.pm
===================================================================
--- trunk/cgi-bin/LJ/FBInterface.pm	2010-03-03 10:39:16 UTC (rev 16313)
+++ trunk/cgi-bin/LJ/FBInterface.pm	2010-03-03 11:18:29 UTC (rev 16314)
@@ -59,11 +59,11 @@
 # sync cache timeouts, such as user suspensions.
 sub push_user_info
 {
-    my ($class, $uid) = $_;
+    my ($class, $uid) = @_;
 
     $uid = LJ::want_userid($uid);
     return unless $uid;
-
+ 
     my $ret = $class->get_user_info({ uid => $uid });
 
     eval "use XMLRPC::Lite;";
@@ -77,7 +77,7 @@
 
 sub can_upload
 {
-    my ($class, $u) = shift;
+    my ($class, $u) = @_;
 
     return LJ::get_cap($u, 'fb_account')
         && LJ::get_cap($u, 'fb_can_upload') ? 1 : 0;

Modified: trunk/cgi-bin/LJ/Request/Apache.pm
===================================================================
--- trunk/cgi-bin/LJ/Request/Apache.pm	2010-03-03 10:39:16 UTC (rev 16313)
+++ trunk/cgi-bin/LJ/Request/Apache.pm	2010-03-03 11:18:29 UTC (rev 16314)
@@ -474,4 +474,10 @@
     return $instance->{r}->child_terminate;
 }
 
+sub LJ::Request::meets_conditions {
+    my $class = shift;
+    _die_if_no_request();
+    return $instance->{r}->meets_conditions;
+}
+
 1;

Modified: trunk/cgi-bin/LJ/Request/Apache2.pm
===================================================================
--- trunk/cgi-bin/LJ/Request/Apache2.pm	2010-03-03 10:39:16 UTC (rev 16313)
+++ trunk/cgi-bin/LJ/Request/Apache2.pm	2010-03-03 11:18:29 UTC (rev 16314)
@@ -465,4 +465,9 @@
     return $instance->{r}->child_terminate;
 }
 
+sub LJ::Request::meets_conditions {
+    my $class = shift;
+        return $instance->{r}->meets_conditions;
+}
+
 1;

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