[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 09 May 2006 18:07:56 -0000
albertel Tue May 9 14:07:56 2006 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- was getting page headers in answer mode in CSTR
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.144 loncom/homework/bridgetask.pm:1.145
--- loncom/homework/bridgetask.pm:1.144 Tue May 9 11:09:21 2006
+++ loncom/homework/bridgetask.pm Tue May 9 14:07:56 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.144 2006/05/09 15:09:21 albertel Exp $
+# $Id: bridgetask.pm,v 1.145 2006/05/09 18:07:56 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -384,12 +384,15 @@
$name = &Apache::structuretags::get_resource_name($parstack,$safeeval);
}
- my ($result,$form_tag_start)=
- &Apache::structuretags::page_start($target,$token,$tagstack,$parstack,
- $parser,$safeeval,$name,&style());
-
- $result .= '<div class="LC_task">'."\n";
-
+ my ($result,$form_tag_start);
+ if ($target eq 'web' || $target eq 'webgrade' || $target eq 'tex'
+ || $target eq 'edit') {
+ ($result,$form_tag_start) =
+ &Apache::structuretags::page_start($target,$token,$tagstack,
+ $parstack,$parser,$safeeval,
+ $name,&style());
+ $result .= '<div class="LC_task">'."\n";
+ }
if ($target eq 'web' && $env{'request.state'} ne 'construct') {
if ($Apache::lonhomework::modifygrades) {