--- loncom/interface/lonsimplepage.pm 2004/05/11 18:43:21 1.18
+++ loncom/interface/lonsimplepage.pm 2004/05/12 19:25:15 1.20
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Simple Page Editor
#
-# $Id: lonsimplepage.pm,v 1.18 2004/05/11 18:43:21 sakharuk Exp $
+# $Id: lonsimplepage.pm,v 1.20 2004/05/12 19:25:15 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -149,17 +149,15 @@ ENDDOCUMENT
# ---------------------------------------------------------------- Get syllabus
if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) {
if ($syllabus{'uploaded.photourl'}) {
- if ($target ne 'tex') {
- &Apache::lonnet::allowuploaded('/adm/smppg',
- $syllabus{'uploaded.photourl'});
- $r->print('
');
- } else {
- &Apache::lonnet::allowuploaded('/adm/smppg',
- $syllabus{'uploaded.photourl'});
- $r->print(&Apache::lonxml::xmlparse($r,'tex','
'));
+ &Apache::lonnet::allowuploaded('/adm/smppg',
+ $syllabus{'uploaded.photourl'});
+
+ my $image='
';
+ if ($target eq 'tex') {
+ $image=&Apache::lonxml::xmlparse($r,'tex',$image);
}
+ $r->print($image);
}
if ($allowed) {
$r->print(