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

[livejournal] r21622: LJSUP-11372: selfpromo_ua disable flag a...

Committer: vtroitsky
LJSUP-11372: selfpromo_ua disable flag added
U   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();

Tags: livejournal, 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