sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r12586: LJSUP-13467: Selfpromo/CommPromo refacto...

Committer: vtroitsky
LJSUP-13467: Selfpromo/CommPromo refactoring required for Journal Promo
U   trunk/cgi-bin/LJ/Pay/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2012-08-30 06:43:16 UTC (rev 12585)
+++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2012-08-30 06:46:41 UTC (rev 12586)
@@ -108,7 +108,7 @@
     do {
         my $reason;
         unless ( $class->is_object_eligible( $slot, $promoted_object, $promoter, \$reason ) ) {
-            $class->raise_error( ERROR_OBJECT_INELIGIBLE, $reason );             
+            $class->raise_error( ERROR_OBJECT_INELIGIBLE, details => $reason );             
             # TODO: fix error messages, make it class specific
         }
     };
@@ -125,7 +125,7 @@
             $class->debug_msg($slot,
                 "not enough money offered, need at least $min_price");
 
-            $class->raise_error( ERROR_PRICE_INSUFFICIENT, $min_price );
+            $class->raise_error( ERROR_PRICE_INSUFFICIENT, details => $min_price );
         }
 
         my $wallet_balance = int LJ::Pay::Wallet->get_user_balance($promoter);
@@ -136,7 +136,7 @@
             );
 
             $class->raise_error( ERROR_WALLET_INSUFFICIENT_FUNDS,
-                $wallet_balance );
+                details => $wallet_balance );
         }
     };
 

Tags: ljcom, pm, sunnyman, vtroitsky
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