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

[livejournal] r23424: LJSUP-14499: Bug fixing

Committer: wisest-owl
LJSUP-14499: Bug fixing

U   trunk/cgi-bin/LJ/Widget/ThemeChooser.pm
Modified: trunk/cgi-bin/LJ/Widget/ThemeChooser.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/ThemeChooser.pm	2012-12-06 08:27:21 UTC (rev 23423)
+++ trunk/cgi-bin/LJ/Widget/ThemeChooser.pm	2012-12-06 08:52:04 UTC (rev 23424)
@@ -129,15 +129,15 @@
     );
 
     $ret .= "<div class='themes-area'>";
+    my @purchased = LJ::S2Theme->load_purchased ($u);
     foreach my $theme (@themes_this_page) {
         next unless defined $theme;
 
         my $is_bought = 0;
         my $shop_theme = LJ::Pay::Theme->load_by_s2lid ($theme->s2lid);
         if ($theme->is_buyable) {
-            my @purchased = LJ::S2Theme->load_purchased ($u);
             $is_bought = 1 if grep { $shop_theme && $_->s2lid == $shop_theme->s2tid } @purchased;
-            next if $shop_theme && $shop_theme->is_bought_out && $shop_theme->owner ne $u->{'user'};
+            next if $shop_theme && $shop_theme->is_bought_out && !$is_bought;
             next if $shop_theme && $shop_theme->is_disabled && !$is_bought;
         }
 

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