--- loncom/auth/lonlogin.pm 2012/04/11 11:40:07 1.150
+++ loncom/auth/lonlogin.pm 2012/08/27 00:52:45 1.152
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Login Screen
#
-# $Id: lonlogin.pm,v 1.150 2012/04/11 11:40:07 goltermann Exp $
+# $Id: lonlogin.pm,v 1.152 2012/08/27 00:52:45 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -229,23 +229,23 @@ sub handler {
if ($spares) {
$spares.= '
';
}
-my %all_hostnames = &Apache::lonnet::all_hostnames();
-foreach my $hostid (sort
+ my %all_hostnames = &Apache::lonnet::all_hostnames();
+ foreach my $hostid (sort
{
&Apache::lonnet::hostname($a) cmp
&Apache::lonnet::hostname($b);
}
keys(%all_hostnames)) {
- next if ($hostid eq $lonhost || $Apache::lonnet::spareid{$hostid});
- my $hostname = &Apache::lonnet::hostname($hostid);
- next if (($last eq $hostname) || ($hostname eq ''));
- $spares.='
'.
- $hostname.'';
- $last=$hostname;
-}
-$r->print(
+ next if ($hostid eq $lonhost || $Apache::lonnet::spareid{$hostid});
+ my $hostname = &Apache::lonnet::hostname($hostid);
+ next if (($last eq $hostname) || ($hostname eq ''));
+ $spares.='
'.
+ $hostname.'';
+ $last=$hostname;
+ }
+ $r->print(
''
.'
'.&mt('Please attempt to login to one of the following servers:') - .'
' - .$spares); - } - $r->print('' - .'' - ); -return OK; -} + if ($spares) { + $r->print(''.&mt('Please attempt to login to one of the following servers:') + .'
' + .$spares); + } + $r->print('