[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Thu, 11 Oct 2007 23:50:56 -0000


albertel		Thu Oct 11 19:50:56 2007 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - only reset the htmlfields on the first start_page in a page
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.591 loncom/interface/loncommon.pm:1.592
--- loncom/interface/loncommon.pm:1.591	Tue Oct  9 13:33:57 2007
+++ loncom/interface/loncommon.pm	Thu Oct 11 19:50:55 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.591 2007/10/09 17:33:57 raeburn Exp $
+# $Id: loncommon.pm,v 1.592 2007/10/11 23:50:55 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5110,7 +5110,9 @@
 sub xml_begin {
     my $output='';
 
-    &Apache::lonhtmlcommon::init_htmlareafields();
+    if ($env{'internal.start_page'}==1) {
+	&Apache::lonhtmlcommon::init_htmlareafields();
+    }
 
     if ($env{'browser.mathml'}) {
 	$output='<?xml version="1.0"?>'