Committer: ssafronova
LJSUP-7419: We shouldn't display yellow bubble in the cart, if the user gives paid account to community. Give more.U trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm =================================================================== --- trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm 2010-11-22 09:03:11 UTC (rev 9741) +++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm 2010-11-22 09:07:02 UTC (rev 9742) @@ -35,7 +35,9 @@ my $now = time; if ($item->{'qty'} == 12 and $item->{'rcptid'} != $cart->get_userid and + LJ::Pay::Wallet->is_user_eligible($u) and $now >= $LJ::PAID_ACCOUNT_PROMO_TOKENS_START and $now < $LJ::PAID_ACCOUNT_PROMO_TOKENS_END) { + push @$warns_ref, LJ::Lang::ml('/pay/modify.bml.warning.give_more_2010', { touser => LJ::ljuser($u), count => $LJ::PAID_ACCOUNT_PROMO_TOKENS_AMOUNT } );