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

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 11 Feb 2004 00:22:21 -0000


albertel		Tue Feb 10 19:22:21 2004 EDT

  Modified files:              
    /loncom/interface	lonsimplepage.pm 
  Log:
  - it's stupid to print simple page in edit mode for CC, print it in student view
  
  
Index: loncom/interface/lonsimplepage.pm
diff -u loncom/interface/lonsimplepage.pm:1.14 loncom/interface/lonsimplepage.pm:1.15
--- loncom/interface/lonsimplepage.pm:1.14	Fri Oct 24 09:31:37 2003
+++ loncom/interface/lonsimplepage.pm	Tue Feb 10 19:22:21 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Simple Page Editor
 #
-# $Id: lonsimplepage.pm,v 1.14 2003/10/24 13:31:37 sakharuk Exp $
+# $Id: lonsimplepage.pm,v 1.15 2004/02/11 00:22:21 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -94,7 +94,7 @@
     }
 # --------------------------------------------------------------- Force Student
     my $forcestudent='';
-    if ($ENV{'form.forcestudent'}) { $forcestudent='student'; };
+    if ($ENV{'form.forcestudent'} ||$ENV{'form.grade_target'} eq 'tex' ) { $forcestudent='student'; };
 
 
     my %syllabus=&Apache::lonnet::dump('smppage_'.$marker,$dom,$crs);