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

[livejournal] r23479: LJSUP-14633: Error when applying some st...

Committer: wisest-owl
LJSUP-14633: Error when applying some styles

U   trunk/cgi-bin/LJ/S2Theme.pm
Modified: trunk/cgi-bin/LJ/S2Theme.pm
===================================================================
--- trunk/cgi-bin/LJ/S2Theme.pm	2012-12-18 08:35:33 UTC (rev 23478)
+++ trunk/cgi-bin/LJ/S2Theme.pm	2012-12-18 11:42:52 UTC (rev 23479)
@@ -550,6 +550,9 @@
     my $self = shift;
     my $u = shift;
 
+    my @shop_themes = LJ::Pay::Theme->get_purchased ($u);
+    return 1 if grep { $self->s2lid == $_->s2lid } @shop_themes;
+
     # theme isn't available to $u if the layout isn't
     return LJ::S2::can_use_layer($u, $self->uniq) && LJ::S2::can_use_layer($u, $self->layout_uniq);
 }

Tags: livejournal, pm, wisest-owl
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