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

[ljcom] r11820: LJSUP-11372: Develop regional self promo...

Committer: vtroitsky
LJSUP-11372: Develop regional self promo for Ukraine. Minor changes.
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-04-26 12:48:19 UTC (rev 11819)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2012-04-26 12:53:14 UTC (rev 11820)
@@ -32,7 +32,7 @@
     $active_type = 'entry' unless ($active_type && $active_type =~ /(entry|journal|community)/);
 
     my $country = LJ::Request->get_param('country');
-    $country = PROMO_REGION_DEFAULT() unless ($country && $country =~ /(def|ua)/);
+    $country = PROMO_REGION_DEFAULT() unless ($country && $country =~ /(cyr|ua)/);
 
     LJ::need_string('/shop/selfpromo.bml.confirm.delete.promoted');
     LJ::need_string('/shop/selfpromo.bml.confirm.poster.cancel');
@@ -138,7 +138,7 @@
     $type = 'entry' unless $type =~ /(entry|journal|community)/;
 
     my $country = LJ::Request->post_param('country');
-    $country = PROMO_REGION_DEFAULT() unless ($country && $country =~ /(def|ua)/);
+    $country = PROMO_REGION_DEFAULT() unless ($country && $country =~ /(cyr|ua)/);
  
     my ($promo_regions, $active_region) = LJ::Pay::PromotionSlot->find_available_promo_regions($remote, $country);
     my $promo_slot = LJ::Pay::PromotionSlot->find_slot(class => PROMO_SELF(), type => $type, region => $active_region);
@@ -190,7 +190,7 @@
     $type = 'entry' unless $type =~ /(entry|journal|community)/;
 
     my $country = LJ::Request->post_param('country');
-    $country = PROMO_REGION_DEFAULT() unless ($country && $country =~ /(def|ua)/);
+    $country = PROMO_REGION_DEFAULT() unless ($country && $country =~ /(cyr|ua)/);
 
     my ($promo_regions, $active_region) = LJ::Pay::PromotionSlot->find_available_promo_regions($remote, $country);
     my $slot = LJ::Pay::PromotionSlot->find_slot(class => PROMO_SELF(), type => $type, region => $active_region);

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