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

[livejournal] r18072: LJINT-362 (Comments for side projects)

Committer: ailyin
LJINT-362 (Comments for side projects)
U   trunk/cgi-bin/LJ/Widget/LoginMulti.pm
Modified: trunk/cgi-bin/LJ/Widget/LoginMulti.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/LoginMulti.pm	2011-01-20 16:24:31 UTC (rev 18071)
+++ trunk/cgi-bin/LJ/Widget/LoginMulti.pm	2011-01-21 03:51:20 UTC (rev 18072)
@@ -58,6 +58,10 @@
             'user_returnto'   => $opts{'user_returnto'},
         };
 
+        if ($current_type eq 'user') {
+            $type_display->{'errors'} = [ map { { 'error' => $_ } } @errors ];
+        }
+
         if ( $opts{'embedded'} ) {
             $template->param( 'type_user' => [ $type_display ] );
         }
@@ -108,13 +112,13 @@
         ## Determine user
         my $username = LJ::Request->post_param('user');
         unless ($username){
-            push @$errors => LJ::Lang::ml("/htdocs/talkpost_do.bml.error.nousername");
+            push @$errors => LJ::Lang::ml("/talkpost_do.bml.error.nousername");
             return;
         }
         ##
         my $u = LJ::load_user($username);
         unless ($u){
-            push @$errors => LJ::Lang::ml("/htdocs/talkpost_do.bml.error.badusername2", {
+            push @$errors => LJ::Lang::ml("/talkpost_do.bml.error.badusername2", {
                                 'sitename' => $LJ::SITENAMESHORT,
                                 'aopts'    => "href='$LJ::SITEROOT/lostinfo.bml'",
                                 });
@@ -130,7 +134,7 @@
         ## Verify
         my $ok = LJ::auth_okay($u, LJ::Request->post_param('password'));
         unless ($ok){
-            push @$errors => LJ::Lang::ml("/htdocs/talkpost_do.bml.error.badpassword2", {
+            push @$errors => LJ::Lang::ml("/talkpost_do.bml.error.badpassword2", {
                                             '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