[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Sat, 30 Aug 2003 02:38:11 -0000
albertel Fri Aug 29 22:38:11 2003 EDT
Modified files:
/loncom/xml londefdef.pm
Log:
- <problem><body> never really worked before, and now it won;t gerenate to sets of menubuttons
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.169 loncom/xml/londefdef.pm:1.170
--- loncom/xml/londefdef.pm:1.169 Wed Aug 27 10:59:41 2003
+++ loncom/xml/londefdef.pm Fri Aug 29 22:38:11 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.169 2003/08/27 14:59:41 albertel Exp $
+# $Id: londefdef.pm,v 1.170 2003/08/30 02:38:11 albertel Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -466,6 +466,10 @@
my ($target,$token,$tagstack,$parstack,$parser,$safeeval) = @_;
my $currentstring = '';
if ($target eq 'web') {
+ if ($Apache::lonhomework::parsing_a_problem) {
+ &Apache::lonxml::warning("<body> tag found inside of <problem> tag this can cause problems.");
+ return '';
+ }
if (!$Apache::lonxml::registered) {
$currentstring.='<head>'.
&Apache::lonmenu::registerurl(undef,$target).'</head>';