Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[ljcom] r11130: LJSUP-10156: Need to create Flag for sel...

Committer: anazarov
LJSUP-10156: Need to create Flag for self promo
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	2011-10-31 11:19:01 UTC (rev 11129)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2011-10-31 14:20:38 UTC (rev 11130)
@@ -83,12 +83,12 @@
 
     my $action = LJ::Request->post_param('action');
 
-    unless ( LJ::Request->post_param('confirm') ) {
-        $self->ml_error('error.unconfirmed');
-        return;
-    }
+    if ( $action eq 'promote' ) {
+        unless ( LJ::Request->post_param('confirm') ) {
+            $self->ml_error('error.unconfirmed');
+            return;
+        }
 
-    if ( $action eq 'promote' ) {
         return $self->process_promote_request;
     }
 

Tags: anazarov, ljcom, nfokz, pm
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