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

[ljcom] r12908: LJSUP-14117: Implement promo in communit...

Committer: vtroitsky
LJSUP-14117: Implement promo in communities
U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm	2012-11-16 08:14:40 UTC (rev 12907)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm	2012-11-16 08:17:18 UTC (rev 12908)
@@ -69,12 +69,12 @@
     } elsif ($promo_class eq PROMO_JOURNAL()) {
         my $url = '';
         $url = $promo->object_url() if($promo);
-        my $owner = '';
-        $owner = $promo->slot->owner->ljuser_display() if $promo;
+        my $journal = '';
+        $journal = $promo->slot->journal->ljuser_display() if $promo;
 
         return LJ::Lang::ml("$promo_class.$sp_type.shop_item.name",
             {   'object_url' => $url,
-                'journal' => $owner,
+                'journal' => $journal,
             } );
     }
 
@@ -125,7 +125,7 @@
                     'wallet.widget.history.des.journals.refund', 
                     { 'buyer' => $buyer->ljuser_display, 
                       'entry_url' => ($prev_promo ? $prev_promo->object_url() : ''),
-                      'journal' => $promo->slot->owner()->ljuser_display(),
+                      'journal' => $promo->slot->journal()->ljuser_display(),
                     }
                 );
             } elsif ( $misc & LJ::Pay::Wallet::Log::MASK_INCOME() ) {
@@ -170,7 +170,7 @@
         if ($promo) {
             return LJ::Lang::ml('wallet.widget.history.des.order.journal', {
                 object_url  => $promo->object_url(),
-                journal     => $promo->slot->owner()->ljuser_display(),
+                journal     => $promo->slot->journal()->ljuser_display(),
                 'cart_link' => $cart_link,
             });
         }

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