журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[ljcom] r12609: LJSUP-13538: Refactoring of shop promo p...

Committer: nnikulochkina
LJSUP-13538: Refactoring of shop promo pages
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-09-05 09:37:02 UTC (rev 12608)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2012-09-05 11:13:27 UTC (rev 12609)
@@ -4,31 +4,28 @@
 
 use base qw( LJ::Widget::Shop::View::Promo );
 
-use List::Util qw();
-
 use LJ::Pay::PromotedObject qw(:types);
 use LJ::Pay::PromotionSlot qw(:regions :classes);
-#use LJ::Pay::SelfPromo qw(:codes);
 
-sub require_remote {0}
-sub require_cart   {0}
+sub require_remote { 0 }
+sub require_cart   { 0 }
 
-sub get_subpage       {'selfpromo'}
-sub get_template_file {'SelfPromo'}
-sub get_item_template_file {'SelfPromoItem.tmpl'};
-sub promo_class {PROMO_SELF}
-sub url {'/shop/selfpromo.bml'}
-sub promo_types { (PROMO_OBJECT_TYPE_ENTRY(),  PROMO_OBJECT_TYPE_JOURNAL(), PROMO_OBJECT_TYPE_COMMUNITY()) }
-sub is_regional {1}
+sub get_subpage            { 'selfpromo' }
+sub get_template_file      { 'SelfPromo' }
+sub get_item_template_file { 'SelfPromoItem.tmpl' }
+sub promo_class            { PROMO_SELF }
+sub url                    { '/shop/selfpromo.bml' }
+sub promo_types            { (PROMO_OBJECT_TYPE_ENTRY(), PROMO_OBJECT_TYPE_JOURNAL(), PROMO_OBJECT_TYPE_COMMUNITY()) }
+sub is_regional            { 1 }
 
 sub after_withdraw {
     my ($self, %params) = @_;
-    return LJ::Request->redirect("$LJ::SITEROOT/shop/selfpromo.bml?type=".$params{type}."&country=".$params{region});
+    return LJ::Request->redirect("$LJ::SITEROOT/shop/selfpromo.bml?type=" . $params{type} . "&country=" . $params{region});
 }
 
 sub after_buyout {
     my ($self, %params) = @_;
-    LJ::Request->redirect("$LJ::SITEROOT/shop/thankyou.bml?cart=" . $params{cart} );
+    LJ::Request->redirect("$LJ::SITEROOT/shop/thankyou.bml?cart=" . $params{cart});
 
 }
 

Tags: ljcom, nikulochkina, nnikulochkina, 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