holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

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

Committer: akanashin
LJSUP-11857: Cyr sub domains
U   trunk/htdocs/tools/endpoints/domain_ru.bml
Modified: trunk/htdocs/tools/endpoints/domain_ru.bml
===================================================================
--- trunk/htdocs/tools/endpoints/domain_ru.bml	2012-04-26 11:02:22 UTC (rev 11812)
+++ trunk/htdocs/tools/endpoints/domain_ru.bml	2012-04-26 11:44:56 UTC (rev 11813)
@@ -10,7 +10,7 @@
     use vars qw(%GET %POST);
     my $remote = LJ::get_remote();
     my $ret    = {};
-
+%POST=%GET;
 #    my $token  = $POST{'token'};
     my $action = $POST{'action'};
 
@@ -63,10 +63,11 @@
     }
 
     if ($action eq 'add') {
-        if (LJ::Pay::Payment::PayItem::DomainRU->add_domains($remote, $src_name, $userid, \@errs, \@short_errs)) {
+        if (LJ::Pay::Payment::PayItem::DomainRU->add_domain($remote, $src_name, $userid, \@errs, \@short_errs)) {
             $ret->{status} = 'ok';
             $ret->{authas} = $user;
             $ret->{src_name} = $src_name;
+            $ret->{userpic} = LJ::load_user($user)->ljuser_display;
         } else {
             $ret->{error} = $short_errs[0];
         }

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