Committer: nnikulochkina
LJSUP-14157: Add 'limit social capital' param to paid repost settingsU trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/EntryForm.pm 2012-11-06 07:17:00 UTC (rev 23252) +++ trunk/cgi-bin/LJ/Widget/EntryForm.pm 2012-11-06 07:42:17 UTC (rev 23253) @@ -890,7 +890,7 @@ return '' unless LJ::is_enabled("paid_repost"); my ($paid_repost_on, $budget) = ($opts->{paid_repost_on}, $opts->{current_repost_budget}); - my $limit_sc = $opts->{repost_limit_sc}; + my $limit_sc = $opts->{repost_limit_sc} || $LJ::PAYREPOST_MIN_SOCIAL_CAPITAL; my $out = ''; @@ -943,7 +943,7 @@ my $limit_sc_label = LJ::Lang::ml('talk.post.paidrepost.limit_sc'); my $limit_sc_field = LJ::html_text({ 'name' => 'repost_limit_sc', - 'value' => $opts->{limit_sc}, + 'value' => $limit_sc, 'id' => 'repost_limit_sc', 'tabindex' => '225', 'size' => '10',