holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r11477: LJSUP-11099: LJ Shop. Change LJ Tokens m...

Committer: akanashin
LJSUP-11099: LJ Shop. Change LJ Tokens mechanics
U   trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm	2012-02-15 12:22:58 UTC (rev 11476)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm	2012-02-15 13:27:06 UTC (rev 11477)
@@ -107,8 +107,11 @@
         LJ::isu($remote) ?
         map { $_->user } ($remote->people_friends) : ();
     my $js_complete = LJ::JSUtil::autocomplete(list => \@flist);
+
     my $free_tokens_status = __is_free_tokens_enabled();
-    $show_tab = 'buy' unless $free_tokens_status;
+    if ($show_tab =~ /free/) {
+        $show_tab = 'buy' unless $free_tokens_status;
+    }
 
     # reserved
     my $transac_id = 0;
@@ -156,7 +159,6 @@
 
 sub __is_free_tokens_enabled {
     my $u_ftp = LJ::load_user( $LJ::FREE_TOKENS->{'freetopay'}->{'account'} );
-
     return 0 unless $u_ftp;
 
     my $balance = LJ::Pay::Wallet->get_user_balance( $u_ftp );

Tags: akanashin, holyandrew, ljcom, 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