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

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

Committer: vtroitsky
LJSUP-13467: Selfpromo/CommPromo refactoring required for Journal Promo
U   trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2012-08-30 06:46:41 UTC (rev 12586)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2012-08-30 07:21:28 UTC (rev 12587)
@@ -59,6 +59,7 @@
         my $ml_info_title_object = LJ::Lang::ml("/shop/selfpromo.bml.info.title.$type");
 
         my $elem = $slot->get_template_params(remote => $remote, shop_page => 1);
+
         $elem->{'ml_info_title_object'}  = $ml_info_title_object,
         $elem->{'form_disabled'} = !$remote ? 1 : 0;
         $elem->{'buyout_price'} = LJ::Request->post_param('price') if LJ::Request->post_param('price');
@@ -281,7 +282,7 @@
     unless ($buyout_res) {
         my $err = $@;
 
-        if ( ref $err && $err->isa('LJ::Pay::SelfPromo::Error') ) {
+        if ( ref $err && $err->isa('LJ::Promo::Error') ) {
             if ( $err->type == ERROR_OBJECT_INELIGIBLE() ) {
 
                 # unlikely because we already checked for that, but still,

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