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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 28 Jun 2004 16:41:09 -0000


albertel		Mon Jun 28 12:41:09 2004 EDT

  Modified files:              
    /loncom/interface	lonfeedback.pm 
  Log:
  - saving some notes
  
  
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.95 loncom/interface/lonfeedback.pm:1.96
--- loncom/interface/lonfeedback.pm:1.95	Wed Jun 23 13:42:58 2004
+++ loncom/interface/lonfeedback.pm	Mon Jun 28 12:41:08 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Feedback
 #
-# $Id: lonfeedback.pm,v 1.95 2004/06/23 17:42:58 sakharuk Exp $
+# $Id: lonfeedback.pm,v 1.96 2004/06/28 16:41:08 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -445,7 +445,13 @@
 		    $discussionitems[$alldiscussion{$_}]=~s/<\/td><td([^>]*)>/$threadinsert<\/td><td TeXwidth="65 mm" align="left">/;
 		    $discussionitems[$alldiscussion{$_}]=~s/<a([^>]+)>(Hide|Delete|Reply|Submissions)<\/a>//g;
                     $discussionitems[$alldiscussion{$_}]=~s/(<b>|<\/b>|<\/a>|<a([^>]+)>)//g;
-		    $discussion.=&Apache::lonxml::xmlparse('','tex',$discussionitems[$alldiscussion{$_}]);
+		    
+                    #FIXME xmlparse can't be safely called from inside xmlparse
+                    #   due to the global variables that are use, the safe
+                    #   space etc. I expect this has unforseen issues that
+                    #   need resolving.
+		    
+                    $discussion.=&Apache::lonxml::xmlparse('','tex',$discussionitems[$alldiscussion{$_}]);
 		}
 	    }
         }