holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r11782: 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-24 14:03:45 UTC (rev 11781)
+++ trunk/htdocs/tools/endpoints/domain_ru.bml	2012-04-24 14:38:30 UTC (rev 11782)
@@ -25,28 +25,32 @@
     # processing remove
     my $user     = $POST{'authas'};
     my $src_name = $POST{'src_name'};
+    my $remote   = LJ::get_remote;
 
     unless ($user && LJ::load_user($user)) {
         return LJ::JSON->to_json({
-               'status' => 'error',
                'error'  => 'bad username',
         });
     }
 
     unless ($action) {
         return LJ::JSON->to_json({
-               'status' => 'error',
                'error'  => 'no action',
         });
     }
 
     unless ($src_name) {
         return LJ::JSON->to_json({
-               'status' => 'error',
-               'error'  => 'no src_name',
+               'error'  => 'invalid',
         });
     }
 
+    unless ($remote) {
+        return LJ::JSON->to_json({
+               'error'  => 'no remote',
+        });
+    }
+
     my $userid = LJ::load_user($user)->userid;
 
     if ($action eq 'delete') {
@@ -60,7 +64,7 @@
     if ($action eq 'check') {
 
         my @subitem_params = (
-            $src_name, $user,
+            $src_name, $userid,
         );
 
         my $it = LJ::Pay::Payment::PayItem::DomainRU->new_memonly(

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