[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 03 Dec 2004 21:47:39 -0000


albertel		Fri Dec  3 16:47:39 2004 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  - sometimes we want the headers
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.185 loncom/homework/lonhomework.pm:1.186
--- loncom/homework/lonhomework.pm:1.185	Tue Nov 30 17:57:16 2004
+++ loncom/homework/lonhomework.pm	Fri Dec  3 16:47:38 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.185 2004/11/30 22:57:16 albertel Exp $
+# $Id: lonhomework.pm,v 1.186 2004/12/03 21:47:38 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -720,7 +720,8 @@
 	    $errormsg='<p><font color="red">'.&mt('You did not select a template.').'</font></p>'."\n";
 	}
 	my $instructions;
-	my $bodytag=&Apache::loncommon::bodytag(undef,undef,undef,1);
+	my $bodytag=&Apache::loncommon::bodytag(undef,undef,undef,
+					($ENV{'environment.remote'} ne 'off'));
 	if ($templatelist) { $instructions=&mt(", select a template from the pull-down menu below.").'<br />'.&mt("Then");}
 	my %lt=&Apache::lonlocal::texthash( 'create' => 'Creating a new',
 			  'resource' => 'resource',