--- loncom/interface/lonviewclasslist.pm 2007/07/20 00:15:06 1.8 +++ loncom/interface/lonviewclasslist.pm 2009/10/17 03:11:25 1.12 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to display the classlist # -# $Id: lonviewclasslist.pm,v 1.8 2007/07/20 00:15:06 raeburn Exp $ +# $Id: lonviewclasslist.pm,v 1.12 2009/10/17 03:11:25 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -91,9 +91,9 @@ ENDHEADER if (keys(%viewsettings) > 0) { $r->print(&html_classlist($r,\%viewsettings)); } else { - $r->print('

'. + $r->print('
'. &mt("Display of a student-viewable course roster is not currently enabled."). - '

'); + ''); } # # Finish up @@ -262,7 +262,7 @@ sub html_classlist { ''.(' 'x2). &Apache::loncommon::messagewrapper (' '. - $username.'@'.$domain,$username,$domain).''; + $username.':'.$domain,$username,$domain).''; if (! $viewsettings->{'limit_to_section'}) { $Str .= ''.$section.''; } @@ -275,7 +275,7 @@ sub html_classlist { $link = ''.$link.''; } } else { - $link = &mt("Error retrieving file information."); + $link = ''.&mt("Error retrieving file information.").''; } $Str .= ''.$link.''; } @@ -337,15 +337,15 @@ sub process_student_prefs { my $putresult = &Apache::lonnet::put('environment', \%changeHash,$udom,$uname); if ($putresult eq 'ok') { - &Apache::lonnet::appenv(%changeHash); + &Apache::lonnet::appenv(\%changeHash); my $result = &Apache::lonnet::put('publicroster',{$student => $showinroster,},$cdom,$cnum); if ($result eq 'ok') { $output .= &mt('Display of your name in the student-viewable roster set to [_1].',$visibility); } else { - $output .= &mt('Error occurred saving display setting.'); + $output .= ''.&mt('Error occurred saving display setting.').''; } } else { - $output .= &mt('Error occurred saving display setting.'); + $output .= ''.&mt('Error occurred saving display setting.').''; } } else { $output .= &mt('Display of your name in the student-viewable roster unchanged (set to [_1]).',$visibility);