Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r10976: LJSUP-9732 (Need to decrease SelfPromo p...

Committer: ailyin
LJSUP-9732 (Need to decrease SelfPromo periods)
U   trunk/cgi-bin/LJ/Pay/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2011-09-08 03:26:11 UTC (rev 10975)
+++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2011-09-08 03:30:59 UTC (rev 10976)
@@ -593,7 +593,7 @@
     my ( $class, $promoinfo ) = @_;
 
     my $unit        = $LJ::SELF_PROMO_CONF->{'refund_time_unit'};
-    my $duration    = $LJ::SELF_PROMO_CONF->{'duration'};
+    my $duration    = $promoinfo->{'exptime'} - $promoinfo->{'started'};
     my $refund_step = $LJ::SELF_PROMO_CONF->{'refund_step'};
 
     my $remaining_time       = $promoinfo->{'exptime'} - time;

Tags: andy, 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