[LON-CAPA-cvs] cvs: loncom /interface lonsimplepage.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 12 May 2004 18:53:35 -0000


sakharuk		Wed May 12 14:53:35 2004 EDT

  Modified files:              
    /loncom/interface	lonsimplepage.pm 
  Log:
  Small correction.
  
  
Index: loncom/interface/lonsimplepage.pm
diff -u loncom/interface/lonsimplepage.pm:1.18 loncom/interface/lonsimplepage.pm:1.19
--- loncom/interface/lonsimplepage.pm:1.18	Tue May 11 14:43:21 2004
+++ loncom/interface/lonsimplepage.pm	Wed May 12 14:53:35 2004
@@ -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.19 2004/05/12 18:53:35 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -149,14 +149,13 @@
 # ---------------------------------------------------------------- Get syllabus
     if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) {
 	if ($syllabus{'uploaded.photourl'}) {
+	    &Apache::lonnet::allowuploaded('/adm/smppg',
+					   $syllabus{'uploaded.photourl'});
+
 	    if ($target ne 'tex') {
-		&Apache::lonnet::allowuploaded('/adm/smppg',
-					       $syllabus{'uploaded.photourl'});
 		$r->print('<img src="'.$syllabus{'uploaded.photourl'}.
 			  '" align="right" />');
 	    } else {
-		&Apache::lonnet::allowuploaded('/adm/smppg',
-					       $syllabus{'uploaded.photourl'});
 		$r->print(&Apache::lonxml::xmlparse($r,'tex','<img src="'.$syllabus{'uploaded.photourl'}.
 			  '" align="right" />'));
 	    }