wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r7596: LJSUP-4762

Committer: gprochaev
LJSUP-4762
1. Add use lib 'cgi-bin'
2. Add check for sponsor user


U   trunk/cgi-bin/LJ/Sponsor.pm
U   trunk/htdocs/manage/account/index.bml
Modified: trunk/cgi-bin/LJ/Sponsor.pm
===================================================================
--- trunk/cgi-bin/LJ/Sponsor.pm	2009-08-25 16:12:02 UTC (rev 7595)
+++ trunk/cgi-bin/LJ/Sponsor.pm	2009-08-26 04:28:15 UTC (rev 7596)
@@ -9,6 +9,7 @@
 use Carp qw/ croak confess cluck/;
 use LJ::User;
 use LJ::Sponsored::User;
+use lib "$ENV{LJHOME}/cgi-bin";
 require "communitylib.pl";
 
 ##

Modified: trunk/htdocs/manage/account/index.bml
===================================================================
--- trunk/htdocs/manage/account/index.bml	2009-08-25 16:12:02 UTC (rev 7595)
+++ trunk/htdocs/manage/account/index.bml	2009-08-26 04:28:15 UTC (rev 7596)
@@ -408,7 +408,7 @@
         $body .= '</table></td></tr></table></td></tr></table></form>';
 
     # Sponsored Account
-    } elsif ($u->in_class('sponsored')) {
+    } elsif ($u->in_class('sponsored') && $u->sponsored_u) {
         my $spu = $u->sponsored_u;
         my $sponsor = $spu->sponsor;
         my $spc = $sponsor->community;

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