[LON-CAPA-cvs] cvs: loncom /auth lonauth.pm

bisitz bisitz at source.lon-capa.org
Wed Aug 21 12:15:44 EDT 2013


bisitz		Wed Aug 21 16:15:44 2013 EDT

  Modified files:              
    /loncom/auth	lonauth.pm 
  Log:
  Correct and improve error message:
  - Internationalization: Do not translate already translated phrases.
  - XHTML/Style: adjust tags to error page wrapper - <h1> not allowed within <p>.
  
  
  
Index: loncom/auth/lonauth.pm
diff -u loncom/auth/lonauth.pm:1.125 loncom/auth/lonauth.pm:1.126
--- loncom/auth/lonauth.pm:1.125	Tue Aug 13 13:22:24 2013
+++ loncom/auth/lonauth.pm	Wed Aug 21 16:15:44 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # User Authentication Module
 #
-# $Id: lonauth.pm,v 1.125 2013/08/13 13:22:24 raeburn Exp $
+# $Id: lonauth.pm,v 1.126 2013/08/21 16:15:44 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -195,9 +195,9 @@
     my ($r) = @_;
     &Apache::loncommon::content_type($r,'text/html');
     $r->send_http_header;
-    my $msg='<h1>'.&mt('Sorry ...').'</h1>'
+    my $msg='<b>'.&mt('Sorry ...').'</b><br />'
            .&mt('Please [_1]log in again[_2].');
-    &Apache::loncommon::simple_error_page($r,'Rerouting',$msg);
+    &Apache::loncommon::simple_error_page($r,'Rerouting',$msg,{'no_auto_mt_msg' => 1});
 }
 
 # ---------------------------------------------------------------- Main handler




More information about the LON-CAPA-cvs mailing list