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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 12 Oct 2007 00:16:42 -0000


albertel		Thu Oct 11 20:16:42 2007 EDT

  Modified files:              (Branch: version_2_5_X)
    /loncom/interface	loncommon.pm 
  Log:
  - backport 1.592
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.564.2.10 loncom/interface/loncommon.pm:1.564.2.11
--- loncom/interface/loncommon.pm:1.564.2.10	Fri Oct  5 14:04:17 2007
+++ loncom/interface/loncommon.pm	Thu Oct 11 20:16:40 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.564.2.10 2007/10/05 18:04:17 albertel Exp $
+# $Id: loncommon.pm,v 1.564.2.11 2007/10/12 00:16:40 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4685,7 +4685,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"?>'