holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

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

Committer: akanashin
LJSUP-11857: Cyr sub domains
U   trunk/cgi-bin/LJ/Console/Command/DomainRU.pm
Modified: trunk/cgi-bin/LJ/Console/Command/DomainRU.pm
===================================================================
--- trunk/cgi-bin/LJ/Console/Command/DomainRU.pm	2012-04-27 07:11:55 UTC (rev 11839)
+++ trunk/cgi-bin/LJ/Console/Command/DomainRU.pm	2012-04-27 08:34:07 UTC (rev 11840)
@@ -70,12 +70,14 @@
     } elsif ($action eq 'remove') {
         $reason ||= 'removed by support';
         LJ::Pay::Payment::PayItem::DomainRU->delete_domains($account, $domain, $reason);
+        LJ::Pay::Wallet->try_add($LJ::Pay::Payment::PayItem::DomainRU::shop_price);
         return $self->print("Domain removed");
     } elsif ($action eq 'show') {
         my $domains = LJ::Pay::Payment::PayItem::DomainRU->get_domains($u);
         for (@$domains) {
             $self->print($_->{dom}." -> ".$_->{auth});
-         }
+        }
+        return $self->print("Done");
     } else {
         return $self->error("Unknown action. Consult the reference.")
     }    

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