--- loncom/interface/lonaboutme.pm 2004/05/12 19:00:20 1.26
+++ 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.26 2004/05/12 19:00:20 sakharuk Exp $
+# $Id: lonaboutme.pm,v 1.28 2004/07/15 21:08:45 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -153,13 +153,12 @@ ENDDOCUMENT
if ($syllabus{'uploaded.photourl'}) {
&Apache::lonnet::allowuploaded('/adm/aboutme',
$syllabus{'uploaded.photourl'});
- if ($target ne 'tex') {
- $r->print('');
- } else {
- $r->print(&Apache::lonxml::xmlparse($r,'tex','
'));
+ my $image='
';
+ if ($target eq 'tex') {
+ $image=&Apache::lonxml::xmlparse($r,'tex',$image);
}
+ $r->print($image);
}
if ($allowed) {
$r->print(
@@ -200,6 +199,7 @@ ENDDOCUMENT
}
if ($ENV{'request.course.id'}) {
if (&Apache::lonnet::allowed('srm',$ENV{'request.course.id'})) {
+ $r->print('');
if ($target ne 'tex') {
$r->print('