[LON-CAPA-cvs] cvs: loncom /interface lonstatistics.pm
bisitz
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 16 Sep 2008 12:32:22 -0000
bisitz Tue Sep 16 08:32:22 2008 EDT
Modified files:
/loncom/interface lonstatistics.pm
Log:
Error message:
- Use LON-CAPA standard style
- Optimized &mt() call
Index: loncom/interface/lonstatistics.pm
diff -u loncom/interface/lonstatistics.pm:1.139 loncom/interface/lonstatistics.pm:1.140
--- loncom/interface/lonstatistics.pm:1.139 Fri Feb 22 13:19:38 2008
+++ loncom/interface/lonstatistics.pm Tue Sep 16 08:32:18 2008
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstatistics.pm,v 1.139 2008/02/22 18:19:38 raeburn Exp $
+# $Id: lonstatistics.pm,v 1.140 2008/09/16 12:32:18 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1181,12 +1181,13 @@
#
if (! &Apache::lonmysql::verify_sql_connection()) {
my $serveradmin = $r->dir_config('lonAdmEMail');
- $r->print('<h2><font color="Red">'.
+ $r->print('<h2 class="LC_error">'.
&mt('Unable to connect to database!').
- '</font></h2>');
- $r->print('<p>'.
- &mt('Please notify the server administrator ').
- '<b>'.$serveradmin.'</b></p>');
+ '</h2>');
+ $r->print('<p>'
+ .&mt('Please notify the server administrator [_1]',
+ ,'<b>'.$serveradmin.'</b>')
+ .'</p>');
$r->print('<p>'.
&mt('Course Statistics and Charts cannot be '.
'retrieved until the database is restarted. '.