[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Sat, 18 Aug 2007 00:31:39 -0000
albertel Fri Aug 17 20:31:39 2007 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
- eliminate headers when uisng the remote and editing a problem
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.390 loncom/homework/structuretags.pm:1.391
--- loncom/homework/structuretags.pm:1.390 Tue Aug 14 00:29:37 2007
+++ loncom/homework/structuretags.pm Fri Aug 17 20:31:35 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.390 2007/08/14 04:29:37 albertel Exp $
+# $Id: structuretags.pm,v 1.391 2007/08/18 00:31:35 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -157,6 +157,10 @@
$body_args{'no_title'} = 1;
$body_args{'force_register'} = 1;
$body_args{'add_entries'} = \%add_entries;
+ if ($env{'environment.remote'} eq 'off'
+ && $env{'request.state'} eq 'construct') {
+ $body_args{'only_body'} = 1;
+ }
}
$body_args{'no_auto_mt_title'} = 1;
my $page_start = &Apache::loncommon::start_page($name,$extra_head,