holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r11754: LJSUP-11857: Cyr sub domains

Committer: akanashin
LJSUP-11857: Cyr sub domains
U   trunk/cgi-bin/LJ/Widget/Shop/View/DomainRU.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/DomainRU.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/DomainRU.pm	2012-04-23 08:40:55 UTC (rev 11753)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/DomainRU.pm	2012-04-23 08:44:51 UTC (rev 11754)
@@ -33,12 +33,6 @@
 
     my $buy_manage = LJ::Request->get_param('type');
 
-    my $delete = LJ::Request->get_param('delete');
-    my $auth = LJ::Request->get_param('auth');
-    my $dom = LJ::Request->get_param('dom');
-
-    LJ::Pay::Payment::PayItem::DomainRU->delete_domains($auth, $dom) if ($delete);
-
     my $authas_opts = {
         'authas' => $current->user,
         'label' => ' ',
@@ -76,10 +70,16 @@
 sub process_post_request {
     my ($self) = @_;
 
+    my $action = LJ::Request->post_param('action');
     my $src_name = LJ::Request->post_param('src_name');
     my $remote = LJ::get_remote();
     my $authas = LJ::load_user(LJ::Request->post_param('authas'))->userid;
 
+    if ($action eq 'delete') {
+        LJ::Pay::Payment::PayItem::DomainRU->delete_domains($authas, $src_name);
+        return LJ::Request->redirect( "$LJ::SITEROOT/shop/domain_ru.bml?type=manage" );
+    }
+
     my @subitem_params = (
         $src_name, $authas,
     );

Tags: akanashin, holyandrew, ljcom, 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