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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Sat, 18 Aug 2007 00:10:50 -0000


albertel		Fri Aug 17 20:10:50 2007 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  - turn off headers only in remote mode
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.269 loncom/homework/lonhomework.pm:1.270
--- loncom/homework/lonhomework.pm:1.269	Fri Aug 17 20:01:45 2007
+++ loncom/homework/lonhomework.pm	Fri Aug 17 20:10:50 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.269 2007/08/18 00:01:45 albertel Exp $
+# $Id: lonhomework.pm,v 1.270 2007/08/18 00:10:50 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -864,10 +864,11 @@
 	my $js =
 	    &Apache::edit::js_change_detection(). 
 	    &Apache::loncommon::resize_textarea_js();
+	my $only_body =  ($env{'environment.remote'} eq 'off')? 0 : 1;
 	my $start_page = 
 	    &Apache::loncommon::start_page(&mt("EditXML [_1]",$file),$js,
 					   {'no_auto_mt_title' => 1,
-					    'only_body'        => 1,
+					    'only_body'        => $only_body,
 					    'add_entries'      => {
 						'onresize' => q[resize_textarea('LC_editxmltext','LC_aftertextarea')],
 						'onload'   => q[resize_textarea('LC_editxmltext','LC_aftertextarea')],