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

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

Committer: vtroitsky
LJSUP-11372: Develop regional self promo for Ukraine. Constant introduced.
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 11:51:17 UTC (rev 11815)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2012-04-26 12:22:35 UTC (rev 11816)
@@ -47,7 +47,7 @@
         'type'                  => $active_type,
         'is_regional_promos'    => scalar(@$promo_regions) > 1 ? 1 : 0,
         'country'               => $active_region,
-        'country_style'         => { 'ua' => 'selfpromo-ua ', 'def' => '' }->{$active_region},
+        'country_style'         => { 'ua' => 'selfpromo-ua ', PROMO_REGION_DEFAULT() => '' }->{$active_region},
     };
   
     foreach my $type ( PROMO_OBJECT_TYPE_ENTRY(),  PROMO_OBJECT_TYPE_JOURNAL(), PROMO_OBJECT_TYPE_COMMUNITY() ) {
@@ -250,7 +250,7 @@
     my $data = $promoted_object->get_template_params();
 
     $data->{'country'} = $slot->region;
-    $data->{'country_style'} = {'ua' => 'selfpromo-ua ', 'def' => ''}->{$slot->region};
+    $data->{'country_style'} = {'ua' => 'selfpromo-ua ', PROMO_REGION_DEFAULT() => ''}->{$slot->region};
 
 
 warn "Preview template: ".Dumper($data);

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