Committer: vtroitsky
LJSUP-11372: selfpromo_ua disable flag addedU trunk/cgi-bin/LJ/Widget/Location.pm
Modified: trunk/cgi-bin/LJ/Widget/Location.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/Location.pm 2012-04-02 12:39:36 UTC (rev 21621) +++ trunk/cgi-bin/LJ/Widget/Location.pm 2012-04-02 19:16:00 UTC (rev 21622) @@ -246,7 +246,7 @@ $class->error($class->ml('widget.location.error.locale.state_ne_country')); } - if ($u->prop('country') eq 'UA') { + if (LJ::is_enabled('selfpromo_ua') && $u->prop('country') eq 'UA') { for my $type (qw(entry journal community)) { my $class = LJ::Pay::SelfPromo->get_class_by_type($type , 'ua'); my $promo = $class->current_promo_info();