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

[livejournal] r21811: LJSUP-11372: [Refactoring] Develop regio...

Committer: vtroitsky
LJSUP-11372: [Refactoring] Develop regional self promo for Ukraine. Final results. Switching to a new Code.
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-26 11:48:00 UTC (rev 21810)
+++ trunk/cgi-bin/LJ/Widget/Location.pm	2012-04-26 11:48:26 UTC (rev 21811)
@@ -4,7 +4,7 @@
 use base qw(LJ::Widget);
 use Carp qw(croak);
 use DateTime::TimeZone;
-use LJ::Widget::Shop::View::SelfPromo;
+#use LJ::Widget::Shop::View::SelfPromo;
 
 my @location_props = qw/ country state city zip sidx_loc/;
 
@@ -246,15 +246,15 @@
         $class->error($class->ml('widget.location.error.locale.state_ne_country'));
     }
 
-    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();
-            if ($promo && LJ::u_equals($promo->promoter, $u)) {
-                $class->withdraw_object($promo->object);
-            }
-        }
-    }
+   # 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();
+   #         if ($promo && LJ::u_equals($promo->promoter, $u)) {
+   #             $class->withdraw_object($promo->object);
+   #         }
+   #     }
+   # }
 
     # zip-code validation stuff
     if ($post->{'country'} eq "US") {

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