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);