Diff of /branches/2.6/cgi-bin/yabb2/Sources/LogInOut.pm [r1422] .. [r1423] Maximize Restore

  Switch to side-by-side view

--- a/branches/2.6/cgi-bin/yabb2/Sources/LogInOut.pm
+++ b/branches/2.6/cgi-bin/yabb2/Sources/LogInOut.pm
@@ -15,7 +15,7 @@
 use CGI::Carp qw(fatalsToBrowser);
 our $VERSION = '2.6.0';
 
-$loginoutpmver = 'YaBB 2.6.0 $Revision: 1419 $';
+$loginoutpmver = 'YaBB 2.6.0 $Revision: 1423 $';
 if ( $action eq 'detailedversion' ) { return 1; }
 
 if ($regcheck) { require Sources::Decoder; }
@@ -43,10 +43,12 @@
     if ( $FORM{'username'} eq q{} ) { fatal_error('no_username'); }
     if ( $FORM{'passwrd'}  eq q{} ) { fatal_error('no_password'); }
     $username = $FORM{'username'};
+    $mylogintxt = $loginout_txt{'35'};
+    if ( $screenlogin ) { $mylogintxt = $loginout_txt{'35b'}; }
     $username =~ s/\s/_/gxsm;
     if ( $username =~ /[^ \w\x80-\xFF\[\]\(\)#\%\+,\-\|\.:=\?\@\^]/xsm ) {
         fatal_error( 'invalid_character',
-            "$loginout_txt{'35'} $loginout_txt{'241'}" );
+            "$mylogintxt $loginout_txt{'241'}" );
     }
 
     ## Check if login ID is not an email address ##