--- loncom/interface/loncommon.pm 2007/02/27 22:16:02 1.507 +++ loncom/interface/loncommon.pm 2007/03/02 23:17:58 1.511 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.507 2007/02/27 22:16:02 raeburn Exp $ +# $Id: loncommon.pm,v 1.511 2007/03/02 23:17:58 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1489,7 +1489,7 @@ sub get_library_servers { my %library_servers; foreach my $hostid (keys(%Apache::lonnet::libserv)) { if ($Apache::lonnet::hostdom{$hostid} eq $domain) { - $library_servers{$hostid} = $Apache::lonnet::hostname{$hostid}; + $library_servers{$hostid} = &Apache::lonnet::hostname($hostid); } } return %library_servers; @@ -2267,6 +2267,19 @@ sub track_student_link { &help_open_topic('View_recent_activity'); } +# ===================================================== Display a student photo + + +sub student_image_tag { + my ($domain,$user)=@_; + my $imgsrc=&Apache::lonnet::studentphoto($domain,$user,'jpg'); + if (($imgsrc) && ($imgsrc ne '/adm/lonKaputt/lonlogo_broken.gif')) { + return ''; + } else { + return ''; + } +} + =pod =back @@ -3662,9 +3675,20 @@ sub standard_css { return <