[LON-CAPA-cvs] cvs: loncom /interface lonaboutme.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Wed, 12 May 2004 19:00:20 -0000
sakharuk Wed May 12 15:00:20 2004 EDT
Modified files:
/loncom/interface lonaboutme.pm
Log:
Pictures/photos can be printed.
Index: loncom/interface/lonaboutme.pm
diff -u loncom/interface/lonaboutme.pm:1.25 loncom/interface/lonaboutme.pm:1.26
--- loncom/interface/lonaboutme.pm:1.25 Mon May 10 10:11:13 2004
+++ loncom/interface/lonaboutme.pm Wed May 12 15:00:20 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# "About Me" Personal Information
#
-# $Id: lonaboutme.pm,v 1.25 2004/05/10 14:11:13 sakharuk Exp $
+# $Id: lonaboutme.pm,v 1.26 2004/05/12 19:00:20 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -153,8 +153,13 @@
if ($syllabus{'uploaded.photourl'}) {
&Apache::lonnet::allowuploaded('/adm/aboutme',
$syllabus{'uploaded.photourl'});
- $r->print('<img src="'.$syllabus{'uploaded.photourl'}.
- '" align="right" />');
+ if ($target ne 'tex') {
+ $r->print('<img src="'.$syllabus{'uploaded.photourl'}.
+ '" align="right" />');
+ } else {
+ $r->print(&Apache::lonxml::xmlparse($r,'tex','<img src="'.$syllabus{'uploaded.photourl'}.
+ '" align="right" />'));
+ }
}
if ($allowed) {
$r->print(