Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r18353: LJINT-401

Committer: ailyin
LJINT-401
U   trunk/cgi-bin/LJ/Talk/Author/User.pm
U   trunk/cgi-bin/LJ/Widget/LoginMulti.pm
Modified: trunk/cgi-bin/LJ/Talk/Author/User.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk/Author/User.pm	2011-02-18 08:07:20 UTC (rev 18352)
+++ trunk/cgi-bin/LJ/Talk/Author/User.pm	2011-02-18 08:07:58 UTC (rev 18353)
@@ -81,7 +81,7 @@
     if ($form->{'usertype'} eq "cookieuser") {
         unless ($remote && $remote->username eq $form->{'cookieuser'}) {
             push @$errret,
-                LJ::Lang::ml("/htdocs/talkpost_do.bml.error.lostcookie");
+                LJ::Lang::ml("/talkpost_do.bml.error.lostcookie");
             return;
         }
 
@@ -98,13 +98,13 @@
          && !$LJ::IS_DEV_SERVER )
     {
         push @$errret,
-            LJ::Lang::ml("/htdocs/talkpost_do.bml.error.testacct");
+            LJ::Lang::ml("/talkpost_do.bml.error.testacct");
         return;
     }
 
     unless ($form->{'userpost'}) {
         push @$errret,
-            LJ::Lang::ml("/htdocs/talkpost_do.bml.error.nousername");
+            LJ::Lang::ml("/talkpost_do.bml.error.nousername");
         return;
     }
 
@@ -118,7 +118,7 @@
     $up = LJ::load_user($form->{'userpost'});
     unless ($up) {
         push @$errret,
-            LJ::Lang::ml("/htdocs/talkpost_do.bml.error.badusername2", {
+            LJ::Lang::ml("/talkpost_do.bml.error.badusername2", {
                 'sitename' => $LJ::SITENAMESHORT,
                 'aopts'    => "href='$LJ::SITEROOT/lostinfo.bml'",
             });
@@ -127,7 +127,7 @@
 
     unless ($up->is_person) {
         push @$errret,
-            LJ::Lang::ml("/htdocs/talkpost_do.bml.error.postshared");
+            LJ::Lang::ml("/talkpost_do.bml.error.postshared");
         return;
     }
 
@@ -140,7 +140,7 @@
             $init->{'used_ecp'} = 1;
         } else {
             push @$errret,
-                LJ::Lang::ml("/htdocs/talkpost_do.bml.error.badpassword2", {
+                LJ::Lang::ml("/talkpost_do.bml.error.badpassword2", {
                     'aopts' => "href='$LJ::SITEROOT/lostinfo.bml'",
                 });
             return;
@@ -159,7 +159,7 @@
 
         unless ($ok) {
             push @$errret,
-                LJ::Lang::ml("/htdocs/talkpost_do.bml.error.badpassword2", {
+                LJ::Lang::ml("/talkpost_do.bml.error.badpassword2", {
                     'aopts' => "href='$LJ::SITEROOT/lostinfo.bml'",
                 });
             return;

Modified: trunk/cgi-bin/LJ/Widget/LoginMulti.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/LoginMulti.pm	2011-02-18 08:07:20 UTC (rev 18352)
+++ trunk/cgi-bin/LJ/Widget/LoginMulti.pm	2011-02-18 08:07:58 UTC (rev 18353)
@@ -118,10 +118,11 @@
         ##
         my $u = LJ::load_user($username);
         unless ($u){
-            push @$errors => LJ::Lang::ml("/talkpost_do.bml.error.badusername2", {
-                                'sitename' => $LJ::SITENAMESHORT,
-                                'aopts'    => "href='$LJ::SITEROOT/lostinfo.bml'",
-                                });
+            push @$errors,
+                LJ::Lang::ml( '/identity/login.bml.user.error.badusername', {
+                    'sitename' => $LJ::SITENAMESHORT,
+                    'aopts'    => "href='$LJ::SITEROOT/lostinfo.bml'",
+                } );
             return;
         }
         ##

Tags: andy, livejournal, 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