--- loncom/interface/lonaboutme.pm 2004/05/03 19:04:49 1.22 +++ loncom/interface/lonaboutme.pm 2004/07/15 21:08:45 1.28 @@ -1,7 +1,7 @@ # The LearningOnline Network # "About Me" Personal Information # -# $Id: lonaboutme.pm,v 1.22 2004/05/03 19:04:49 sakharuk Exp $ +# $Id: lonaboutme.pm,v 1.28 2004/07/15 21:08:45 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -107,7 +107,7 @@ ENDDOCUMENT $allowed=(($ENV{'user.name'} eq $cnum) && ($ENV{'user.domain'} eq $cdom)); - if ($forcestudent) { $allowed=0; } + if ($forcestudent or $target eq 'tex') { $allowed=0; } if ($allowed) { if ($target ne 'tex') { @@ -153,10 +153,14 @@ ENDDOCUMENT if ($syllabus{'uploaded.photourl'}) { &Apache::lonnet::allowuploaded('/adm/aboutme', $syllabus{'uploaded.photourl'}); - $r->print(''); + my $image=''; + if ($target eq 'tex') { + $image=&Apache::lonxml::xmlparse($r,'tex',$image); + } + $r->print($image); } - if ($allowed & $target ne 'tex') { + if ($allowed) { $r->print( '